build_manifest: Add the "path" attribute to projects
authorThibault Saunier <tsaunier@igalia.com>
Wed, 14 Nov 2018 13:20:16 +0000 (10:20 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 21 Nov 2018 23:37:12 +0000 (20:37 -0300)
When the local path and the name are different, both have to be
specified, it is now required since we add the '.git' to the name.

gitlab/build_manifest.py

index 6aab445..9ad506f 100755 (executable)
@@ -278,11 +278,11 @@ if __name__ == "__main__":
         sys.exit(0)
 
     projects: str = ''
-    project_template: str = "  <project name=\"{}.git\" remote=\"{}\" revision=\"{}\" />\n"
+    project_template: str = "  <project path=\"%(name)s\" name=\"%(name)s.git\" remote=\"%(remote)s\" revision=\"%(revision)s\" />\n"
     for module in GSTREAMER_MODULES:
         print(f"Checking {module}:", end=' ')
         remote, revision = find_repository_sha(module, current_branch)
-        projects += project_template.format(module[0], remote, revision)
+        projects += project_template % {'name': module[0], 'remote': remote, 'revision': revision}
 
     with open(options.output, mode='w') as manifest:
         print(MANIFEST_TEMPLATE.format(user_remote_url, projects), file=manifest)