1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 06:46:13 +01:00

fix with/without definitions, --with should not define %_without and vice versa

This commit is contained in:
Michael Schroeder 2013-03-20 15:38:25 +01:00
parent 320238350f
commit 1299b73efa

View File

@ -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: