A pkgdesc with spaces in it would get restored to an array and thus only
the first word would be restored (FS#15210). Convert that array back to a
string.

Signed-off-by: Allan McRae <[email protected]>
---

Not sure if there is a better way to do this?

 scripts/makepkg.sh.in |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 34c92c7..922187a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1280,6 +1280,11 @@ restore_package_variables() {
                        unset ${var}
                fi
        done
+
+       # pkgdesc gets restored as an array - convert back to a string
+       local pkgdesc_backup="${pkgde...@]}"
+       unset pkgdesc
+       pkgdesc=${pkgdesc_backup}
 }
 
 # getopt like parser
-- 
1.6.3.3

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

Reply via email to