Use requirements project list for mirror selection
The openstack/requirements repo maintains a list of projects that have opted in to receiving automatic updates. Those projects clearly want to be beholden to the mirror as well, so consume that for mirror choice instead of trying to figure it out via rules based on name. Change-Id: I5c65287fabe43fc3e6dec315b29c13788bd3c1ea
This commit is contained in:
parent
4643f50921
commit
e3f7b0561e
@ -37,13 +37,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
|
||||
# wheel mirrors are below a dir level containing distro and release
|
||||
# because the wheel format itself does not distinguish
|
||||
|
Loading…
x
Reference in New Issue
Block a user