Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-02-03 11:01:01 +1000
committerDan McGee <dan@archlinux.org>2011-02-02 20:47:08 -0600
commitf89277536612ff8e204cefcb6ff7cca7079d6bd5 (patch)
tree2dd9882f626a2d1a8b6993cd5bbb7986b6ea522d /scripts
parent35a8cf134bedf723dc6df5c6c2d6744ed942f31f (diff)
makepkg: initialize local arrays to empty
Fixes bash-3.2 compatibility. Thanks-to: Dave Reisner <d@falconindy.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index e8f57e14..13415fbe 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1257,7 +1257,7 @@ check_sanity() {
fi
fi
- local provides_list
+ local provides_list=()
eval $(awk '/^[[:space:]]*provides=/,/\)/' "$BUILDFILE" | sed "s/provides=/provides_list+=/")
for i in ${provides_list[@]}; do
if [[ $i != ${i//</} || $i != ${i//>/} ]]; then
@@ -1266,7 +1266,7 @@ check_sanity() {
fi
done
- local backup_list
+ local backup_list=()
eval $(awk '/^[[:space:]]*backup=/,/\)/' "$BUILDFILE" | sed "s/backup=/backup_list+=/")
for i in "${backup_list[@]}"; do
if [[ ${i:0:1} = "/" ]]; then
@@ -1275,7 +1275,7 @@ check_sanity() {
fi
done
- local optdepends_list
+ local optdepends_list=()
eval $(awk '/^[[:space:]]*optdepends=/,/\)/' "$BUILDFILE" | sed "s/optdepends=/optdepends_list+=/")
for i in "${optdepends_list[@]}"; do
local pkg=${i%%:*}