don't include options with no value

This commit is contained in:
Mike Bonnet 2008-10-08 12:19:43 -04:00
parent 60d66b010a
commit 3c5c245c05

View file

@ -670,7 +670,9 @@ def handle_build(options, session, args):
if build_opts.arch_override:
opts['arch_override'] = ' '.join(build_opts.arch_override.replace(',',' ').split())
for key in ('skip_tag','scratch'):
opts[key] = getattr(build_opts,key)
val = getattr(build_opts, key)
if val is not None:
opts[key] = val
priority = None
if build_opts.background:
#relative to koji.PRIO_DEFAULT