aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2007-03-31 16:57:56 +0200
committerLoïc Minier <lool@dooz.org>2007-03-31 16:57:56 +0200
commit95f46bd66aa9d8eb8a81a6149b13d9f275c6a089 (patch)
tree4a48f0402585cb1a293f9506d6dacdf78ad10f34 /pbuilder-satisfydepends-funcs
parente60c7421cdc7b48bec0f67a0a21cdbc7325bbb2e (diff)
downloadpbuilder-95f46bd66aa9d8eb8a81a6149b13d9f275c6a089.tar
pbuilder-95f46bd66aa9d8eb8a81a6149b13d9f275c6a089.tar.gz
* More cleanups in RE and grep invocations.
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-xpbuilder-satisfydepends-funcs6
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