summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-18 08:27:07 -0400
committerAllan McRae <allan@archlinux.org>2014-10-19 20:47:01 +1000
commitd6785a572638f8ab0550aeefca096dca2020a0fc (patch)
tree6321ac4c1507527ee898aa64114e04f89f8d6dd9 /scripts/makepkg.sh.in
parentd8f395fb563d3988f8a3bed16808e6ac5ca56435 (diff)
downloadpacman-d6785a572638f8ab0550aeefca096dca2020a0fc.tar.xz
makepkg: always look for sources in source=()
This regression snuck in during some reviewing of 963f7fe02fcb14 (arch-specific sources). We must always check the source=() array for sources. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 8a67d94e..86f8a773 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1309,6 +1309,8 @@ verify_integrity_sums() {
have_sources() {
local a
+ (( ${#source[*]} )) && return 0
+
case $1 in
all)
for a in "${arch[@]}"; do
@@ -1316,9 +1318,7 @@ have_sources() {
done
;;
*)
- if (( ${#source[*]} )) || array_build _ source_"$CARCH"; then
- return 0
- fi
+ array_build _ source_"$CARCH" && return 0
;;
esac