diff options
author | Cedric Staniewski <cedric@gmx.ca> | 2009-11-06 00:14:09 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-11-10 18:24:20 +0100 |
commit | db756ed9316648c8ba6a82a0f0818515421f8a94 (patch) | |
tree | ba748c2a59bf6d9c86f2886b839f062276fc6c83 /scripts | |
parent | 133a39e2bb78f2be1a60094a5a398f04315df64a (diff) | |
download | pacman-db756ed9316648c8ba6a82a0f0818515421f8a94.tar.gz pacman-db756ed9316648c8ba6a82a0f0818515421f8a94.tar.xz |
makepkg: quote arrays in order to preserve spaces in array items
Fixes FS#16871 and makes the pkgdesc workaround obsolete.
Signed-off-by: Cedric Staniewski <cedric@gmx.ca>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index ba0d3d91..13e4ed5e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1298,7 +1298,7 @@ devel_update() { backup_package_variables() { for var in ${splitpkg_overrides[@]}; do indirect="${var}_backup" - eval "${indirect}=(\${$var[@]})" + eval "${indirect}=(\"\${$var[@]}\")" done } @@ -1306,16 +1306,11 @@ 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 done - - # pkgdesc gets restored as an array - convert back to a string - local pkgdesc_backup="${pkgdesc[@]}" - unset pkgdesc - pkgdesc=${pkgdesc_backup} } # getopt like parser |