repo_primary = manifest.get_repo_primary_md(self.outdir, name)
# Generate manifest for every repo arch
- for arch in repo_primary.keys():
- # package and vcs tag dict
- package_vcs_tag = manifest.get_package_vcs_tag(repo_primary[arch])
- # tuple set in (gitprj, git_path, revision)
- data = set([])
-
- for pkg in package_vcs_tag.keys():
- try:
- git_prj, commit_id = package_vcs_tag[pkg].split('#')
- data.add((git_prj, git_prj, commit_id))
- except ValueError:
- # No vcs tag found
- data.add((pkg, '', ''))
-
- manifest_string = manifest.gen_repo_manifest(sorted(data),
- gerrit_fetch_url,
- gerrit_review_url)
- with open(os.path.join(manifest_dir,
- "%s_%s_%s.xml" %(self.build_id, name, arch)),
- 'w') as manifest_fh:
- manifest_fh.write(manifest_string)
+ # package and vcs tag dict
+ package_vcs_tag = manifest.get_package_vcs_tag(repo_primary)
+ # tuple set in (gitprj, git_path, revision)
+ data = set([])
+
+ for pkg in package_vcs_tag.keys():
+ try:
+ git_prj, commit_id = package_vcs_tag[pkg].split('#')
+ data.add((git_prj, git_prj, commit_id))
+ except ValueError:
+ # No vcs tag found
+ data.add((pkg, '', ''))
+
+ manifest_string = manifest.gen_repo_manifest(sorted(data),
+ gerrit_fetch_url,
+ gerrit_review_url)
+ with open(os.path.join(manifest_dir,
+ "%s_%s.xml" %(self.build_id, name)),
+ 'w') as manifest_fh:
+ manifest_fh.write(manifest_string)