Commit 8d50f89 update arch manifest.add config order for productmd api call

1 file Authored and Committed by Adam Miller 2 years ago
update arch manifest.add config order for productmd api call

    
 1 @@ -62,7 +62,7 @@
 2           # update rpm manifest
 3           pkg_obj = pkg_set[pkg["path"]]
 4           nevra = pkg_obj.nevra
 5 -         manifest.add("src", variant.uid, nevra, path=dst_relpath, sigkey=pkg_obj.signature, category="source")
 6 +         manifest.add(variant.uid, arch, nevra, path=dst_relpath, sigkey=pkg_obj.signature, category="source")
 7   
 8           # update srpm_map
 9           srpm_map.setdefault(pkg_obj.file_name, nevra)
10 @@ -80,7 +80,7 @@
11           pkg_obj = pkg_set[pkg["path"]]
12           nevra = pkg_obj.nevra
13           src_nevra = _get_src_nevra(compose, pkg_obj, srpm_map)
14 -         manifest.add(arch, variant.uid, nevra, path=dst_relpath, sigkey=pkg_obj.signature, category="binary", srpm_nevra=src_nevra)
15 +         manifest.add(variant.uid, arch, nevra, path=dst_relpath, sigkey=pkg_obj.signature, category="binary", srpm_nevra=src_nevra)
16   
17       packages_dir = compose.paths.compose.debug_packages(arch, variant)
18       packages_dir_relpath = compose.paths.compose.debug_packages(arch, variant, relative=True)
19 @@ -95,7 +95,7 @@
20           pkg_obj = pkg_set[pkg["path"]]
21           nevra = pkg_obj.nevra
22           src_nevra = _get_src_nevra(compose, pkg_obj, srpm_map)
23 -         manifest.add(arch, variant.uid, nevra, path=dst_relpath, sigkey=pkg_obj.signature, category="debug", srpm_nevra=src_nevra)
24 +         manifest.add(variant.uid, arch, nevra, path=dst_relpath, sigkey=pkg_obj.signature, category="debug", srpm_nevra=src_nevra)
25   
26       pool.start()
27       pool.stop()