diff options
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-x | pbuilder-satisfydepends-funcs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs index a59905e..d819698 100755 --- a/pbuilder-satisfydepends-funcs +++ b/pbuilder-satisfydepends-funcs @@ -57,12 +57,12 @@ function checkbuilddep_archdeps () { # architectures listed between [ and ] for this dep local DEP_ARCHES="$(echo "$INSTALLPKG" | sed 's/.*\(\[.*\]\)/\1/')" # check for !$ARCH in DEP_ARCHES - if echo "$DEP_ARCHES" | grep -q "[[/][!]\($ARCH\)[]/]"; then + if echo "$DEP_ARCHES" | grep -q "[[/]\!\($ARCH\)[]/]"; then return 0; fi - if ! echo "$DEP_ARCHES" | grep "[!]" > /dev/null; then + if ! echo "$DEP_ARCHES" | grep -q '!'; then # check for arch in $ARCH in DEP_ARCHES - if ! echo "$DEP_ARCHES" | grep "[[/]\($ARCH\)[]/]" > /dev/null; then + if ! echo "$DEP_ARCHES" | grep -q "[[/]\($ARCH\)[]/]"; then return 0; fi fi |