build_manifest.py: Make sure the remote always ends with a slash
authorJordan Petridis <jordan@centricular.com>
Wed, 24 Oct 2018 11:09:17 +0000 (14:09 +0300)
committerJordan Petridis <jordan@centricular.com>
Mon, 5 Nov 2018 12:31:52 +0000 (14:31 +0200)
that's how `git-update` in `gst-build` expects it to be

gitlab/build_manifest.py

index 9be22fc..7ace070 100755 (executable)
@@ -133,6 +133,9 @@ if __name__ == "__main__":
     projects: str = ''
     project_template: str = "  <project name=\"{}\" remote=\"{}\" revision=\"{}\" />\n"
     user_remote: str = os.path.dirname(os.environ['CI_PROJECT_URL'])
+    if not user_remote.endswith('/'):
+        user_remote += '/'
+
     for module in GSTREAMER_MODULES:
         print(f"Checking {module}:", end=' ')