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.
This commit is contained in:
Benjamin Denhartog 2021-09-04 16:23:31 -06:00 committed by Jelle van der Waa
parent 9028302ac7
commit be80928384
No known key found for this signature in database
GPG Key ID: C06086337C50773E
1 changed files with 1 additions and 1 deletions

View File

@ -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."