From: Jan Palus Date: Mon, 16 Nov 2020 10:54:42 +0000 (+0100) Subject: do exact bcond match when reporting active bconds X-Git-Tag: auto/th/rpm-build-tools-4.9-8~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=commitdiff_plain;h=b28896b39717e859665e3823290564c4d0f271b4 do exact bcond match when reporting active bconds `builder --without static_libs bash` reports bcond is active even though it's not --- diff --git a/builder.sh b/builder.sh index 2daade8..ed2184b 100755 --- a/builder.sh +++ b/builder.sh @@ -1824,7 +1824,7 @@ set_bconds_values() { without_*) bcond=${opt#without_} case "$BCOND" in - *--without?${bcond}*) + *--without?${bcond}\ *|*--without?${bcond}) AVAIL_BCONDS_WITHOUT="$AVAIL_BCONDS_WITHOUT <$bcond>" ;; *) @@ -1835,7 +1835,7 @@ set_bconds_values() { with_*) bcond=${opt#with_} case "$BCOND" in - *--with?${bcond}*) + *--with?${bcond}\ *|*--with?${bcond}) AVAIL_BCONDS_WITH="$AVAIL_BCONDS_WITH <$bcond>" ;; *)