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