From ce11f88f2f4508494c104f747385a2f7bb64f8c2 Mon Sep 17 00:00:00 2001 From: Hui Yiqun Date: Sat, 28 Apr 2018 15:55:05 +0800 Subject: [PATCH] switch upstream of pypi to pypi.org from pypi.python.org --- pypi.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pypi.sh b/pypi.sh index ed7c663..39ace1d 100755 --- a/pypi.sh +++ b/pypi.sh @@ -1,5 +1,6 @@ #!/bin/bash BANDERSNATCH=${BANDERSNATCH:-"/usr/local/bin/bandersnatch"} +TUNASYNC_UPSTREAM=${TUNASYNC_UPSTREAM:-"https://pypi.org/"} CONF="/tmp/bandersnatch.conf" INIT=${INIT:-"0"} @@ -14,7 +15,7 @@ if [[ $INIT == "0" ]]; then cat > $CONF << EOF [mirror] directory = ${TUNASYNC_WORKING_DIR} -master = https://pypi.python.org +master = ${TUNASYNC_UPSTREAM} timeout = 15 workers = 10 stop-on-error = true @@ -29,7 +30,7 @@ else cat > $CONF << EOF [mirror] directory = ${TUNASYNC_WORKING_DIR} -master = https://pypi.python.org +master = ${TUNASYNC_UPSTREAM} timeout = 15 workers = 10 stop-on-error = false