summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2019-01-04 03:57:22 +0100
committerAllan McRae <allan@archlinux.org>2019-01-04 06:43:41 +0100
commit7c5958e0eb8f77feab743adcce05b8bfa600b69e (patch)
tree455e7c8cc9dedc44b79908bbbeeb7671546ae1f9 /scripts
parente1fc2f901ea7d70787d803ffb5c39fe7ad8bb92e (diff)
downloadpacman-7c5958e0eb8f77feab743adcce05b8bfa600b69e.tar.gz
pacman-7c5958e0eb8f77feab743adcce05b8bfa600b69e.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 1 insertions, 1 deletions
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