[pacman-dev] [PATCH 06/10] makepkg: Only backup package variables once

Jan Alexander Steffens (heftig) jan.steffens at gmail.com
Thu May 31 16:24:51 UTC 2018


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


More information about the pacman-dev mailing list