Fix handling of empty third argument of use_with() and use_enable().
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Thu, 27 May 2010 13:11:03 +0000 (15:11 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Thu, 27 May 2010 13:11:03 +0000 (15:11 +0200)
bin/ebuild.sh

index 4778afbe9c6902fa51cc04421a82f830d7081146..b46d14a6341542758d6d525cbf20a0c9dcdfd8c0 100755 (executable)
@@ -230,7 +230,7 @@ use_with() {
                return 1
        fi
 
-       local UW_SUFFIX=${3:+=$3}
+       local UW_SUFFIX=${3+=$3}
        local UWORD=${2:-$1}
 
        if useq $1; then
@@ -248,7 +248,7 @@ use_enable() {
                return 1
        fi
 
-       local UE_SUFFIX=${3:+=$3}
+       local UE_SUFFIX=${3+=$3}
        local UWORD=${2:-$1}
 
        if useq $1; then