Skip to content

Commit

Permalink
Use --no-rebuild-srpm for scratch builds in KojiReleaser
Browse files Browse the repository at this point in the history
Fix #382
  • Loading branch information
FrostyX committed Aug 11, 2020
1 parent 2a9178d commit 5575554
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tito/release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,13 @@ def _koji_release(self):
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])

Expand Down

0 comments on commit 5575554

Please sign in to comment.