From df27164c1ce85e851c2cb4ce84e790f68c10f0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 15 Nov 2017 16:20:18 +0100 Subject: [PATCH] gather: Comps source should not crash without comps file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There just isn't anything to return. Signed-off-by: Lubomír Sedlář --- pungi/phases/gather/sources/source_comps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pungi/phases/gather/sources/source_comps.py b/pungi/phases/gather/sources/source_comps.py index 69ba9e3a..655c7673 100644 --- a/pungi/phases/gather/sources/source_comps.py +++ b/pungi/phases/gather/sources/source_comps.py @@ -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'):