Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-03-15 16:45:02 +0200
committerTasos Sahanidis <tasos@tasossah.com>2024-03-15 16:45:02 +0200
commita1ca197bc99c2d5c2977630cc4c9dbfd5461d9c1 (patch)
treec85cc952485be4b776ed25ed03fb6bfd3595e746
parent5d63dda662fe4ac5f6b0bf176f4a978c5bbc7a9a (diff)
src/makechrootpkg: Ensure git doesn't ask for credentials
-rw-r--r--src/makechrootpkg.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makechrootpkg.in b/src/makechrootpkg.in
index 70eba3c..44b991b 100644
--- a/src/makechrootpkg.in
+++ b/src/makechrootpkg.in
@@ -228,7 +228,7 @@ _chrootbuild() {
sudo --preserve-env=SOURCE_DATE_EPOCH \
--preserve-env=BUILDTOOL \
--preserve-env=BUILDTOOLVER \
- -iu builduser bash -c 'cd /startdir; CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse makepkg "$@"' -bash "$@"
+ -iu builduser bash -c 'cd /startdir; GIT_TERMINAL_PROMPT=0 CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse makepkg "$@"' -bash "$@"
ret=$?
case $ret in
0|14)
@@ -256,7 +256,7 @@ download_sources() {
# Ensure sources are downloaded
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[@]}" ||
+ GIT_TERMINAL_PROMPT=0 makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" ||
die "Could not download sources."
}