switch upstream of pypi to pypi.org from pypi.python.org

This commit is contained in:
Hui Yiqun 2018-04-28 15:55:05 +08:00
parent 5a2bf39bb3
commit ce11f88f2f

View File

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