Merge "Use requirements project list for mirror selection"
This commit is contained in:
commit
318bd35b4c
@ -31,13 +31,9 @@ cat <<EOF > ~/.pip/pip.conf
|
||||
timeout = 60
|
||||
EOF
|
||||
|
||||
# Noop, do not setup any mirrors to allow requirements to talk to the
|
||||
# outside world.
|
||||
if [ "$org" == "openstack" ] && [ "$project" == "requirements" ]
|
||||
then
|
||||
echo "Not changing mirror"
|
||||
# For OpenStack projects, use the pypi.openstack.org mirror exclusively
|
||||
elif [ "$org" == "openstack" ]
|
||||
# For project listed in openstack/requirements,
|
||||
# use the pypi.openstack.org mirror exclusively
|
||||
if grep -x "$org/$project" /opt/requirements/projects.txt 2>&1
|
||||
then
|
||||
export TOX_INDEX_URL='http://pypi.openstack.org/openstack'
|
||||
cat <<EOF > ~/.pydistutils.cfg
|
||||
|
Loading…
x
Reference in New Issue
Block a user