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 <allan@archlinux.org>
This commit is contained in:
Allan McRae 2009-07-04 02:28:03 +10:00
parent 621aa26e26
commit e72cce352a

View file

@ -1281,6 +1281,11 @@ restore_package_variables() {
unset ${var} unset ${var}
fi fi
done done
# pkgdesc gets restored as an array - convert back to a string
local pkgdesc_backup="${pkgdesc[@]}"
unset pkgdesc
pkgdesc=${pkgdesc_backup}
} }
# getopt like parser # getopt like parser