[pacman-dev] [PATCH] Fix copying of arrays in makepkg.
Loui Chang
louipc.ist at gmail.com
Mon Nov 9 15:34:55 EST 2009
Arrays were being converted to strings, then back to arrays rather than
being copied directly as arrays.
This closes FS#16871
Signed-off-by: Loui Chang <louipc.ist at gmail.com>
---
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 92b0454..8ca89e1 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1315,7 +1315,7 @@ devel_update() {
backup_package_variables() {
for var in ${splitpkg_overrides[@]}; do
indirect="${var}_backup"
- eval "${indirect}=(\${$var[@]})"
+ eval "${indirect}=(\"\${$var[@]}\")"
done
}
@@ -1323,7 +1323,7 @@ restore_package_variables() {
for var in ${splitpkg_overrides[@]}; do
indirect="${var}_backup"
if [ -n "${!indirect}" ]; then
- eval "${var}=(\${$indirect[@]})"
+ eval "${var}=(\"\${$indirect[@]}\")"
else
unset ${var}
fi
--
1.6.5.2
More information about the pacman-dev
mailing list