From: Elan Ruusamäe Date: Fri, 28 Jan 2005 19:03:06 +0000 (+0000) Subject: - ~/.bcondrc: $opt already filtered from + and - X-Git-Tag: auto/ac/rpm-4_4_2-10~83 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=3b5101f002253cc1de038b7268119718ae1089eb;p=packages%2Frpm-build-tools.git - ~/.bcondrc: $opt already filtered from + and - Changed files: builder.sh -> 1.300 --- diff --git a/builder.sh b/builder.sh index 8f48302..04bb33e 100644 --- a/builder.sh +++ b/builder.sh @@ -977,10 +977,10 @@ set_bconds_values() # use only flags which are in this package. if [[ $AVAIL = *${opt}* ]]; then - if [[ $flag == -* ]]; then - BCOND="$BCOND --without ${opt#-}" + if [[ $flag = -* ]]; then + BCOND="$BCOND --without $opt" else - BCOND="$BCOND --with ${opt#+}" + BCOND="$BCOND --with $opt" fi fi done