don't fail if scratch not specified
this is a fix for an error introduced in an earlier change
This commit is contained in:
parent
329a9b5fa4
commit
c7a475d055
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -680,7 +680,7 @@ def handle_build(options, session, args):
|
|||
# try to check that source is an SRPM
|
||||
if '://' not in source:
|
||||
# only allow admins to perform non-scratch builds from srpm
|
||||
if not opts['scratch'] and not session.hasPerm('admin'):
|
||||
if not opts.get('scratch') and not session.hasPerm('admin'):
|
||||
parser.error(_("builds from srpm must use --scratch"))
|
||||
assert False
|
||||
#treat source as an srpm and upload it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue