summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-04-09 16:27:00 +1000
committerDan McGee <dan@archlinux.org>2012-04-24 08:54:54 -0500
commit22050f18f4049b20f56e98766b68c0c32d070f1a (patch)
treed9bd65264f7573888301671b94aa144c77fc3a92
parentd38a1c02dbbf90b890bcd79d0354d04a4886c026 (diff)
makepkg: treat list of packages to be installed as an array
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 86701d30..caf481a1 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1487,10 +1487,10 @@ install_package() {
for pkg in ${pkgname[@]}; do
fullver=$(get_full_version $pkg)
pkgarch=$(get_pkg_arch $pkg)
- pkglist+=" $PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}"
+ pkglist+=("$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}")
done
- if ! run_pacman -U $pkglist; then
+ if ! run_pacman -U ${pkglist[@]}; then
warning "$(gettext "Failed to install built package(s).")"
return 0
fi