[pacman-dev] [PATCH] makepkg: Make pkgdir a local
Allan McRae
allan at archlinux.org
Fri Jan 4 03:13:59 UTC 2019
From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
Causes it to be reset (to $pkgdirbase/$pkgbase) between subpackages.
This shouldn't be visible.
Signed-off-by: Allan McRae <allan at archlinux.org>
---
Rebase of https://patchwork.archlinux.org/patch/640/ .
scripts/makepkg.sh.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index e3a392d4..237d1cdb 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -739,7 +739,7 @@ create_debug_package() {
return 0
fi
- pkgdir="$pkgdirbase/$pkgbase- at DEBUGSUFFIX@"
+ local pkgdir="$pkgdirbase/$pkgbase- at DEBUGSUFFIX@"
# check if we have any debug symbols to package
if dir_is_empty "$pkgdir/usr/lib/debug"; then
@@ -923,7 +923,7 @@ restore_package_variables() {
}
run_single_packaging() {
- pkgdir="$pkgdirbase/$pkgname"
+ local pkgdir="$pkgdirbase/$pkgname"
mkdir "$pkgdir"
if [[ -n $1 ]] || (( PKGFUNC )); then
run_package $1
--
2.20.0
More information about the pacman-dev
mailing list