From 5cc612f966f966a711d73bf905e0504e2c8d2eb4 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:44 +0100 Subject: [PATCH] gather: Do not require variant for module source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lubomír Sedlář --- pungi/phases/gather/sources/source_module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi/phases/gather/sources/source_module.py b/pungi/phases/gather/sources/source_module.py index b0ca6716..57740fca 100644 --- a/pungi/phases/gather/sources/source_module.py +++ b/pungi/phases/gather/sources/source_module.py @@ -28,7 +28,8 @@ class GatherSourceModule(pungi.phases.gather.source.GatherSourceBase): enabled = True def __call__(self, arch, variant): - logfile = self.compose.paths.log.log_file(arch, 'source-module-%s' % variant.uid) + uid = variant.uid if variant else 'no-variant' + logfile = self.compose.paths.log.log_file(arch, 'source-module-%s' % uid) with open(logfile, 'w') as log: return self.worker(log, arch, variant)