makepkg: treat list of packages to be installed as an array

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2012-04-09 16:27:00 +10:00 committed by Dan McGee
parent d38a1c02db
commit 22050f18f4
1 changed files with 2 additions and 2 deletions

View File

@ -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