mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
fix --define
This commit is contained in:
parent
904754987c
commit
6cee3c99fa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user