[pacman-dev] [PATCH] makepkg: fix pkgdesc restoration with split packaging
Allan McRae
allan at archlinux.org
Fri Jul 3 12:31:43 EDT 2009
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 <allan at archlinux.org>
---
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="${pkgdesc[@]}"
+ unset pkgdesc
+ pkgdesc=${pkgdesc_backup}
}
# getopt like parser
--
1.6.3.3
More information about the pacman-dev
mailing list