makepkg: print the name of the source array being checked

I don't see an easy fix to avoid printing this more than once, so let's
at least differentiate the messaging so that it's more clear what's
going on.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Dave Reisner 2014-12-23 21:06:37 -05:00 committed by Allan McRae
parent 7c0ff7f4b7
commit 6356567ae0
1 changed files with 5 additions and 4 deletions

View File

@ -1284,22 +1284,23 @@ verify_integrity_one() {
}
verify_integrity_sums() {
local integ=$1 arch=$2 integrity_sums=() sources=()
local integ=$1 arch=$2 integrity_sums=() sources=() srcname
if [[ $arch ]]; then
array_build integrity_sums "${integ}sums_$arch"
array_build sources "source_$arch"
srcname=source_$arch
else
array_build integrity_sums "${integ}sums"
array_build sources source
srcname=source
fi
array_build sources "$srcname"
if (( ${#integrity_sums[@]} == 0 && ${#sources[@]} == 0 )); then
return 1
fi
if (( ${#integrity_sums[@]} == ${#sources[@]} )); then
msg "$(gettext "Validating source files with %s...")" "${integ}sums"
msg "$(gettext "Validating %s files with %s...")" "$srcname" "${integ}sums"
local idx errors=0
for (( idx = 0; idx < ${#sources[*]}; idx++ )); do
verify_integrity_one "${sources[idx]}" "$integ" "${integrity_sums[idx]}" || errors=1