get_binhost.py: Support manifest paths without trailing slashes
At least for the internal manifest on tatl, I'd see 'Unknown manifest
source
https://chrome-internal.googlesource.com/chromeos/manifest-internal'
with no trailing slash. Support with or without.
BUG=None
TEST=get_binhost.py tatl
Change-Id: I102c248baaa17cb91c6f35bf1c92eb740bce467c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2963802
Reviewed-by: David Munro <davidmunro@google.com>
Reviewed-by: Fergus Dall <sidereal@google.com>
Commit-Queue: David Munro <davidmunro@google.com>
Tested-by: David Munro <davidmunro@google.com>
Auto-Submit: David Munro <davidmunro@google.com>
diff --git a/contrib/get_binhost.py b/contrib/get_binhost.py
index 5bd948b..d1c2372 100755
--- a/contrib/get_binhost.py
+++ b/contrib/get_binhost.py
@@ -38,10 +38,10 @@
cwd='/mnt/host/source/.repo/manifests/',
check=True).stdout.decode().strip()
- if url == 'https://chrome-internal.googlesource.com/chromeos/manifest-internal/':
+ if 'chrome-internal.googlesource.com/chromeos/manifest-internal' in url:
return True
- if url == 'https://chromium.googlesource.com/chromiumos/manifest/':
+ if 'chromium.googlesource.com/chromiumos/manifest' in url:
return False
print(f'Unknown manifest source {url}')