We don't need to re-backup the variables we restored on the previous
iteration.
---
scripts/makepkg.sh.in | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 86af4675..84ae08db 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1134,9 +1134,8 @@ run_solo_packaging() {
run_split_packaging() {
local pkgname_backup=("${pkgname[@]}")
- local restore_package_variables
+ local restore_package_variables="$(backup_package_variables)"
for pkgname in ${pkgname_backup[@]}; do
- restore_package_variables="$(backup_package_variables)"
run_solo_packaging $pkgname
eval "$restore_package_variables"
done
--
2.17.0