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:
Lubomír Sedlář 2017-11-15 16:20:18 +01:00
parent 670a68a5b8
commit df27164c1c
1 changed files with 3 additions and 0 deletions

View File

@ -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'):