From a8285350cc6c6e9400c53e2a24d984a4b242e434 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 18 Oct 2013 00:32:20 -0400 Subject: makepkg: allow empty source arrays Necessary for metapackages. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 8050d0bc..ccc1ddf4 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -2248,7 +2248,7 @@ check_sanity() { done local idx=("${!source[@]}") - if (( (idx[-1] + 1) != ${#source[*]} )); then + if (( ${#source[*]} > 0 && (idx[-1] + 1) != ${#source[*]} )); then error "$(gettext "Sparse arrays are not allowed for source")" ret=1 fi -- cgit v1.2.3-70-g09d2