index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2010-08-05 21:12:11 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-23 21:50:57 -0500 |
commit | f04530eb618a3f7e7ee1dd15f0b2907fc28bed98 (patch) | |
tree | cbb037e64ca9982d0bb6b0d138198cec485e70e7 /scripts/makepkg.sh.in | |
parent | 68d8bfa0b5c15e1ddbc7f81cd23bf464674413f9 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 14 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index a28cfa75..7e6a194a 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1285,14 +1285,12 @@ check_sanity() { done fi - if [[ -n "${PKGLIST[@]}" ]]; then - for pkg in ${PKGLIST[@]}; do - if ! in_array $pkg ${pkgname[@]}; then - error "$(gettext "requested package %s is not provided in %s")" "$pkg" "$BUILDFILE" - return 1 - fi - done - fi + for pkg in ${PKGLIST[@]}; do + if ! in_array $pkg ${pkgname[@]}; then + error "$(gettext "requested package %s is not provided in %s")" "$pkg" "$BUILDFILE" + return 1 + fi + done return 0 } |