Skip to content

Commit e148587

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "remove corrupt get-pip.py"
2 parents e3fe3fd + 0280f6f commit e148587

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/install_pip.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ function get_versions {
4242

4343

4444
function install_get_pip {
45+
# If get-pip.py isn't python, delete it. This was probably an
46+
# outage on the server.
47+
if [[ -r $LOCAL_PIP ]]; then
48+
if ! head -1 $LOCAL_PIP | grep -q '#!/usr/bin/env python'; then
49+
echo "WARNING: Corrupt $LOCAL_PIP found removing"
50+
rm $LOCAL_PIP
51+
fi
52+
fi
53+
4554
# The OpenStack gate and others put a cached version of get-pip.py
4655
# for this to find, explicitly to avoid download issues.
4756
#

0 commit comments

Comments
 (0)