makepkg: fix variable backup/restore for splitpkg
The backup and restore of variables that can be overridden while making split packages only dealt with the first element, not the whole array (FS#15010). Adjust the bash voodoo to fix it... Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
04d5c4294a
commit
ef500b44ce
1 changed files with 2 additions and 2 deletions
|
@ -1262,7 +1262,7 @@ devel_update() {
|
||||||
backup_package_variables() {
|
backup_package_variables() {
|
||||||
for var in ${splitpkg_overrides[@]}; do
|
for var in ${splitpkg_overrides[@]}; do
|
||||||
indirect="${var}_backup"
|
indirect="${var}_backup"
|
||||||
eval "${indirect}=\"${!var}\""
|
eval "${indirect}=(\${$var[@]})"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1270,7 +1270,7 @@ restore_package_variables() {
|
||||||
for var in ${splitpkg_overrides[@]}; do
|
for var in ${splitpkg_overrides[@]}; do
|
||||||
indirect="${var}_backup"
|
indirect="${var}_backup"
|
||||||
if [ -n "${!indirect}" ]; then
|
if [ -n "${!indirect}" ]; then
|
||||||
eval "${var}=\"${!indirect}\""
|
eval "${var}=(\${$indirect[@]})"
|
||||||
else
|
else
|
||||||
unset ${var}
|
unset ${var}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue