makepkg: allow empty source arrays
Necessary for metapackages. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
c2134fde2b
commit
a8285350cc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue