diff --git a/modules/jenkins/files/slave_scripts/select-mirror.sh b/modules/jenkins/files/slave_scripts/select-mirror.sh index d2d761d684..6bdbc7c525 100755 --- a/modules/jenkins/files/slave_scripts/select-mirror.sh +++ b/modules/jenkins/files/slave_scripts/select-mirror.sh @@ -37,13 +37,9 @@ cat < ~/.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