Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Denhartog <ben@sudoforge.com>2021-09-04 16:23:31 -0600
committerJelle van der Waa <jelle@archlinux.org>2021-10-21 21:41:11 +0200
commitbe8092838473b7e63e918db6ae522ab19924ddf7 (patch)
tree387755115293c88f6a2bd05f7ae7fca66f10933e
parent9028302ac7cff713e54145928f74e4aff1d81c27 (diff)
makechrootpkg: preserve SSH_AUTH_SOCK to support ssh operations
This commit introduces the preservation of SSH_AUTH_SOCK within the chroot environment, to support SSH-based operations, such as cloning repositories via SSH.
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index dddfca9..d7e4ea9 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -241,7 +241,7 @@ download_sources() {
chown "$makepkg_user:" "$WORKDIR"
# Ensure sources are downloaded
- sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \
+ sudo -u "$makepkg_user" --preserve-env=GNUPGHOME,SSH_AUTH_SOCK \
env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \
makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" ||
die "Could not download sources."