diff options
-rwxr-xr-x | checkVersions | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions index 684a52106..73bd8421d 100755 --- a/checkVersions +++ b/checkVersions @@ -102,6 +102,21 @@ then tail -n1 )" elif echo "${src}" | \ + grep -q "^https://pypi\.python\.org/packages/" + then + qu="$( + echo "${src}" | \ + sed 's|^\(.*\)/packages/.*/\([^/]\+\)-[^/-]\+\.tar\.gz$|\1/pypi/\2/|' + )" + remVer="$( + curl -o - "${qu}" 2> /dev/null | \ + tr "\"" "\n" | \ + grep "^/pypi/${pkgname#*-}/[0-9.-]\+\$" | \ + sed "s|^/pypi/${pkgname#*-}/\([0-9.-]\+\)\$|\1|" | \ + sort -V | \ + tail -n1 + )" + elif echo "${src}" | \ grep -q "//bundles\.openttdcoop\.org/" then qu="$( |