gather: Fix test for module presence
When testing if a variant has some modules, it's no longer enough to look at `variant.modules`. That attribute contains only names of modules configured in variants.xml. With modules being specified in `pkgset_koji_module_builds` or `pkgset_scratch_modules` options it is possible the code wouldn't trigger even if there was a module. JIRA: RHELCMP-3054 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
99c1e2eb5e
commit
295a60a704
@ -32,8 +32,8 @@ class GatherSourceModule(pungi.phases.gather.source.GatherSourceBase):
|
||||
groups = set()
|
||||
packages = set()
|
||||
|
||||
# Check if this variant contains some modules
|
||||
if variant is None or variant.modules is None:
|
||||
# Check if there is a variant. The method only makes sense for variants.
|
||||
if variant is None:
|
||||
return packages, groups
|
||||
|
||||
compatible_arches = pungi.arch.get_compatible_arches(arch, multilib=True)
|
||||
|
Loading…
Reference in New Issue
Block a user