From 7c5958e0eb8f77feab743adcce05b8bfa600b69e Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Fri, 4 Jan 2019 12:57:22 +1000 Subject: makepkg: Only backup package variables once We don't need to re-backup the variables we restored on the previous iteration. Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 4449ccf7..33b3a70e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -924,10 +924,10 @@ restore_package_variables() { run_split_packaging() { local pkgname_backup=("${pkgname[@]}") + backup_package_variables for pkgname in ${pkgname_backup[@]}; do pkgdir="$pkgdirbase/$pkgname" mkdir "$pkgdir" - backup_package_variables run_package $pkgname tidy_install lint_package || exit $E_PACKAGE_FAILED -- cgit v1.2.3-70-g09d2