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)