Update from upstream #11
@ -48,12 +48,14 @@ class GatherSourceJson(pungi.phases.gather.source.GatherSourceBase):
|
|||||||
if variant is None:
|
if variant is None:
|
||||||
# get all packages for all variants
|
# get all packages for all variants
|
||||||
for variant_uid in mapping:
|
for variant_uid in mapping:
|
||||||
for pkg_name, pkg_arches in mapping[variant_uid][arch].items():
|
for pkg_name, pkg_arches in mapping[variant_uid].get(arch, {}).items():
|
||||||
for pkg_arch in pkg_arches:
|
for pkg_arch in pkg_arches:
|
||||||
packages.add((pkg_name, pkg_arch))
|
packages.add((pkg_name, pkg_arch))
|
||||||
else:
|
else:
|
||||||
# get packages for a particular variant
|
# get packages for a particular variant
|
||||||
for pkg_name, pkg_arches in mapping[variant.uid][arch].items():
|
for pkg_name, pkg_arches in (
|
||||||
|
mapping.get(variant.uid, {}).get(arch, {}).items()
|
||||||
|
):
|
||||||
for pkg_arch in pkg_arches:
|
for pkg_arch in pkg_arches:
|
||||||
packages.add((pkg_name, pkg_arch))
|
packages.add((pkg_name, pkg_arch))
|
||||||
return packages, set()
|
return packages, set()
|
||||||
|
Loading…
Reference in New Issue
Block a user