makepkg: treat list of packages to be installed as an array
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
d38a1c02db
commit
22050f18f4
1 changed files with 2 additions and 2 deletions
|
@ -1487,10 +1487,10 @@ install_package() {
|
||||||
for pkg in ${pkgname[@]}; do
|
for pkg in ${pkgname[@]}; do
|
||||||
fullver=$(get_full_version $pkg)
|
fullver=$(get_full_version $pkg)
|
||||||
pkgarch=$(get_pkg_arch $pkg)
|
pkgarch=$(get_pkg_arch $pkg)
|
||||||
pkglist+=" $PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}"
|
pkglist+=("$PKGDEST/${pkg}-${fullver}-${pkgarch}${PKGEXT}")
|
||||||
done
|
done
|
||||||
|
|
||||||
if ! run_pacman -U $pkglist; then
|
if ! run_pacman -U ${pkglist[@]}; then
|
||||||
warning "$(gettext "Failed to install built package(s).")"
|
warning "$(gettext "Failed to install built package(s).")"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue