mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 21:28:42 +02:00
fix with/without definitions, --with should not define %_without and vice versa
This commit is contained in:
@@ -518,12 +518,10 @@ def main(apiurl, opts, argv):
|
||||
s = ''
|
||||
for i in opts.without:
|
||||
s += "%%define _without_%s 1\n" % i
|
||||
s += "%%define _with_%s 0\n" % i
|
||||
build_descr_data = s + build_descr_data
|
||||
if opts._with:
|
||||
s = ''
|
||||
for i in opts._with:
|
||||
s += "%%define _without_%s 0\n" % i
|
||||
s += "%%define _with_%s 1\n" % i
|
||||
build_descr_data = s + build_descr_data
|
||||
if opts.define:
|
||||
|
Reference in New Issue
Block a user