From 1299b73efaae5304aee45eb79ae11cb8d7a83a55 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Wed, 20 Mar 2013 15:38:25 +0100 Subject: [PATCH] fix with/without definitions, --with should not define %_without and vice versa --- osc/build.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/osc/build.py b/osc/build.py index cb90cb20..d882cdcc 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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: