mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 09:51:50 -05:00
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
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user