mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
parent
2a9178dcf2
commit
5575554c95
1 changed files with 5 additions and 1 deletions
|
@ -484,9 +484,13 @@ class KojiReleaser(Releaser):
|
||||||
if 'KOJI_OPTIONS' in self.builder.user_config:
|
if 'KOJI_OPTIONS' in self.builder.user_config:
|
||||||
koji_opts = self.builder.user_config['KOJI_OPTIONS']
|
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'])
|
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:
|
if self.profile:
|
||||||
koji_opts = ' '.join(['--profile', self.profile, koji_opts])
|
koji_opts = ' '.join(['--profile', self.profile, koji_opts])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue