File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ TMP_DIR=$(mktemp -d)
3030# TODO: Use json endpoint + jq to parse out the url
3131# https://pypi.org/pypi/apache-libcloud/3.4.0/json
3232EXTENSIONS[0]=" .tar.gz"
33- EXTENSIONS[1]=" -py3-none-any.whl"
33+ EXTENSIONS[1]=" -py2. py3-none-any.whl"
3434
3535APACHE_MIRROR_URL=" http://www.apache.org/dist/libcloud"
3636PYPI_MIRROR_URL_SOURCE=" https://pypi.python.org/packages/source/a/apache-libcloud"
6969 extension=${EXTENSIONS[$i]}
7070 file_name=" ${VERSION}${extension} "
7171
72- if [ " ${extension} " = " -py3-none-any.whl" ]; then
72+ if [ " ${extension} " = " -py2. py3-none-any.whl" ]; then
7373 # shellcheck disable=SC2001
7474 file_name=$( echo " ${file_name} " | sed " s/apache-libcloud/apache_libcloud/g" )
7575 fi
7676
7777 apache_url=" ${APACHE_MIRROR_URL} /${file_name} "
7878 pypi_url=" ${PYPI_MIRROR_URL} /${file_name} "
7979
80- if [ " ${extension} " = " -py3-none-any.whl" ]; then
80+ if [ " ${extension} " = " -py2. py3-none-any.whl" ]; then
8181 pypi_url=" ${PYPI_MIRROR_URL_WHEEL} /${file_name} "
8282 else
8383 pypi_url=" ${PYPI_MIRROR_URL_SOURCE} /${file_name} "
You can’t perform that action at this time.
0 commit comments