From 22050f18f4049b20f56e98766b68c0c32d070f1a Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 9 Apr 2012 16:27:00 +1000 Subject: makepkg: treat list of packages to be installed as an array Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2