1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

fix --define

This commit is contained in:
Ludwig Nussel 2010-12-21 16:10:50 +01:00
parent 904754987c
commit 6cee3c99fa

View File

@ -414,7 +414,8 @@ def main(apiurl, opts, argv):
for o in opts.without:
buildargs.append('--without=%s' % o)
if opts.define:
buildargs.append('--define=%s' % opts.define)
for o in opts.define:
buildargs.append('--define=%s' % o)
if config['build-uid']:
build_uid = config['build-uid']
if opts.build_uid:
@ -491,6 +492,11 @@ def main(apiurl, opts, argv):
s += "%%define _without_%s 0\n" % i
s += "%%define _with_%s 1\n" % i
build_descr_data = s + build_descr_data
if opts.define:
s = ''
for i in opts.define:
s += "%%define %s\n" % i
build_descr_data = s + build_descr_data
if opts.prefer_pkgs:
print 'Scanning the following dirs for local packages: %s' % ', '.join(opts.prefer_pkgs)