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>
This commit is contained in:
parent
e1fc2f901e
commit
7c5958e0eb
1 changed files with 1 additions and 1 deletions
|
@ -924,10 +924,10 @@ restore_package_variables() {
|
||||||
|
|
||||||
run_split_packaging() {
|
run_split_packaging() {
|
||||||
local pkgname_backup=("${pkgname[@]}")
|
local pkgname_backup=("${pkgname[@]}")
|
||||||
|
backup_package_variables
|
||||||
for pkgname in ${pkgname_backup[@]}; do
|
for pkgname in ${pkgname_backup[@]}; do
|
||||||
pkgdir="$pkgdirbase/$pkgname"
|
pkgdir="$pkgdirbase/$pkgname"
|
||||||
mkdir "$pkgdir"
|
mkdir "$pkgdir"
|
||||||
backup_package_variables
|
|
||||||
run_package $pkgname
|
run_package $pkgname
|
||||||
tidy_install
|
tidy_install
|
||||||
lint_package || exit $E_PACKAGE_FAILED
|
lint_package || exit $E_PACKAGE_FAILED
|
||||||
|
|
Loading…
Add table
Reference in a new issue