aboutsummaryrefslogtreecommitdiff
path: root/src/python/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/install.sh')
-rwxr-xr-xsrc/python/install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python/install.sh b/src/python/install.sh
index 053a72a..0e2b125 100755
--- a/src/python/install.sh
+++ b/src/python/install.sh
@@ -32,6 +32,8 @@ GPG_KEY_SERVERS="keyserver hkp://keyserver.ubuntu.com
keyserver hkps://keys.openpgp.org
keyserver hkp://keyserver.pgp.com"
+KEYSERVER_PROXY="${HTTPPROXY:-"${HTTP_PROXY:-""}"}"
+
set -e
# Clean up
@@ -84,6 +86,9 @@ receive_gpg_keys() {
mkdir -p "$(dirname \"$2\")"
keyring_args="--no-default-keyring --keyring $2"
fi
+ if [ ! -z "${KEYSERVER_PROXY}" ]; then
+ keyring_args="${keyring_args} --keyserver-options http-proxy=${KEYSERVER_PROXY}"
+ fi
# Use a temporary location for gpg keys to avoid polluting image
export GNUPGHOME="/tmp/tmp-gnupg"