[pacman-dev] [PATCH] [makepkg] Respect paths with spaces on --install

Andrea Scarpino andrea at archlinux.org
Wed Jun 19 16:38:57 EDT 2013


makepkg --install doesn't quote the absolute path, so if the path contains
spaces pacman -U fails.

---
 scripts/makepkg.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f8bf8e6..2a39157 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -2089,7 +2089,7 @@ install_package() {
                fi
        done
 
-       if ! run_pacman -U ${pkglist[@]}; then
+       if ! run_pacman -U "${pkglist[@]}"; then
                warning "$(gettext "Failed to install built package(s).")"
                return 0
        fi
-- 
1.8.3.1


More information about the pacman-dev mailing list