diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2019-01-04 12:57:22 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-04 15:43:41 +1000 |
commit | 7c5958e0eb8f77feab743adcce05b8bfa600b69e (patch) | |
tree | 455e7c8cc9dedc44b79908bbbeeb7671546ae1f9 /scripts | |
parent | e1fc2f901ea7d70787d803ffb5c39fe7ad8bb92e (diff) | |
download | 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.in | 2 |
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 |