[pacman-dev] [PATCH] makepkg: allow empty source arrays
18 Oct
2013
18 Oct
'13
6:32 a.m.
Necessary for metapackages. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> --- 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 8050d0b..ccc1ddf 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 -- 1.8.4.1
4032
Age (days ago)
4032
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrew Gregory