gather: Comps source should not crash without comps file
There just isn't anything to return. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
670a68a5b8
commit
df27164c1c
@ -34,6 +34,9 @@ class GatherSourceComps(pungi.phases.gather.source.GatherSourceBase):
|
||||
|
||||
def __call__(self, arch, variant):
|
||||
groups = set()
|
||||
if not self.compose.conf.get('comps_file'):
|
||||
return set(), set()
|
||||
|
||||
comps = CompsWrapper(self.compose.paths.work.comps(arch=arch))
|
||||
|
||||
if variant is not None and (variant.groups or variant.type != 'variant'):
|
||||
|
Loading…
Reference in New Issue
Block a user