1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

--with and --without need to be array

This commit is contained in:
Ludwig Nussel 2009-11-24 09:49:26 +00:00
parent 7cc629bdad
commit d47ebed9e0
2 changed files with 7 additions and 5 deletions

View File

@ -316,9 +316,11 @@ def main(opts, argv):
if opts.debuginfo:
buildargs.append('--debug')
if opts._with:
buildargs.append('--with %s' % opts._with)
for o in opts._with:
buildargs.append('--with %s' % o)
if opts.without:
buildargs.append('--without %s' % opts.without)
for o in opts.without:
buildargs.append('--without %s' % o)
# FIXME: quoting
# if opts.define:
# buildargs.append('--define "%s"' % opts.define)

View File

@ -2895,12 +2895,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='use N parallel build jobs with icecream')
@cmdln.option('--ccache', action='store_true',
help='use ccache to speed up rebuilds')
@cmdln.option('--with', metavar='X', dest='_with',
@cmdln.option('--with', metavar='X', dest='_with', action='append',
help='enable feature X for build')
@cmdln.option('--without', metavar='X',
@cmdln.option('--without', metavar='X', action='append',
help='disable feature X for build')
# will not work as build.py does not support proper quoting
# @cmdln.option('--define', metavar='\'X Y\'',
# @cmdln.option('--define', metavar='\'X Y\'', action='append',
# help='define macro X with value Y')
@cmdln.option('--userootforbuild', action='store_true',
help='Run build as root. The default is to build as '