1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

makepkg: always look for sources in source=()

This regression snuck in during some reviewing of 963f7fe02f
(arch-specific sources). We must always check the source=() array for
sources.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2014-10-18 08:27:07 -04:00 committed by Allan McRae
parent d8f395fb56
commit d6785a5726

View File

@ -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