From e72cce352a4f43e371998dc8985b5fa2e0102216 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 4 Jul 2009 02:28:03 +1000 Subject: makepkg: fix pkgdesc restoration with split packaging 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 --- scripts/makepkg.sh.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index e9bd57cf..8aa6cfcc 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1281,6 +1281,11 @@ restore_package_variables() { 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 -- cgit v1.2.3-24-g4f1b