commit b28896b39717e859665e3823290564c4d0f271b4
Author: Jan Palus <[email protected]>
Date:   Mon Nov 16 11:54:42 2020 +0100

    do exact bcond match when reporting active bconds
    
    `builder --without static_libs bash` reports <static> bcond is active even
    though it's not

 builder.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
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>"
                                ;;
                        *)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/b28896b39717e859665e3823290564c4d0f271b4

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to