don't fail if scratch not specified

this is a fix for an error introduced in an earlier change
This commit is contained in:
Mike McLean 2008-10-15 12:05:54 -04:00
parent 329a9b5fa4
commit c7a475d055

View file

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