The backup and restore of variables that can be overridden while
making split packages only dealt with the first element, not the
whole array (FS#15010).  Adjust the bash voodoo to fix it...

Signed-off-by: Allan McRae <[email protected]>
---
 scripts/makepkg.sh.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index f46b7f8..e2e1604 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1262,7 +1262,7 @@ devel_update() {
 backup_package_variables() {
        for var in ${splitpkg_overrid...@]}; do
                indirect="${var}_backup"
-               eval "${indirect}=\"${!var}\""
+               eval "${indirect}=(\${$v...@]})"
        done
 }
 
@@ -1270,7 +1270,7 @@ restore_package_variables() {
        for var in ${splitpkg_overrid...@]}; do
                indirect="${var}_backup"
                if [ -n "${!indirect}" ]; then
-                       eval "${var}=\"${!indirect}\""
+                       eval "${var}=(\${$indire...@]})"
                else
                        unset ${var}
                fi
-- 
1.6.3.2

_______________________________________________
pacman-dev mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/pacman-dev

Reply via email to