index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Griffin <aaron@archlinux.org> | 2007-02-26 08:43:02 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-02-26 08:43:02 +0000 |
commit | 4dd6c9222879198eaff8da464d9eb0ecf6313954 (patch) | |
tree | 4599c756911f52b7f61a8714928a6fd122683bca /scripts | |
parent | 8fbdd03cce3c04a8208df30f435bc3e91a84ade3 (diff) |
-rwxr-xr-x | scripts/makepkg | 10 |
diff --git a/scripts/makepkg b/scripts/makepkg index d9e5919d..fc81ed4c 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -184,7 +184,7 @@ checkdeps() { pmout=$(pacman $PACMAN_OPTS -T $*) ret=$? - if [ $ret -eq 127 ]; then #unresolved deps + if [ $ret -eq 1 ]; then #unresolved deps #strip out the pacman prefix from "requires: xyz" echo $pmout | sed 's|requires:||g' elif [ $ret -ne 0 ]; then @@ -211,8 +211,8 @@ handledeps() { FAKEROOTKEY2=$FAKEROOTKEY unset FAKEROOTKEY fi - sudo pacman $PACMAN_OPTS -D $deplist - if [ "$?" = "127" ]; then + sudo pacman $PACMAN_OPTS -S $deplist + if [ $? -eq 1 ]; then error "Failed to install missing dependencies." exit 1 fi @@ -223,8 +223,8 @@ handledeps() { elif [ "$DEP_BIN" = "1" ]; then # install missing deps from binary packages (using pacman -S) msg "Installing missing dependencies..." - pacman $PACMAN_OPTS -D $deplist - if [ "$?" = "127" ]; then + pacman $PACMAN_OPTS -S $deplist + if [ $? -eq 1 ]; then error "Failed to install missing dependencies." exit 1 fi |