gather: Do not require variant for module source

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-11-15 16:20:44 +01:00
parent df27164c1c
commit 5cc612f966
1 changed files with 2 additions and 1 deletions

View File

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