Use --no-rebuild-srpm for scratch builds in KojiReleaser

Fix #382
This commit is contained in:
Jakub Kadlcik 2020-07-25 23:31:48 +02:00 committed by Jakub Kadlčík
parent 2a9178dcf2
commit 5575554c95

View file

@ -484,9 +484,13 @@ class KojiReleaser(Releaser):
if 'KOJI_OPTIONS' in self.builder.user_config:
koji_opts = self.builder.user_config['KOJI_OPTIONS']
if self.scratch or ('SCRATCH' in os.environ and os.environ['SCRATCH'] == '1'):
scratch = self.scratch or ('SCRATCH' in os.environ and os.environ['SCRATCH'] == '1')
if scratch:
koji_opts = ' '.join([koji_opts, '--scratch'])
if scratch and (self.test or self.builder.test):
koji_opts = ' '.join([koji_opts, '--no-rebuild-srpm'])
if self.profile:
koji_opts = ' '.join(['--profile', self.profile, koji_opts])