diff options
author | Erich Eckner <git@eckner.net> | 2017-10-05 11:34:37 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-05 11:34:37 +0200 |
commit | 501aaea6d1d0ca7888003ea27d2f394d555c365b (patch) | |
tree | 26999433416dd8804420ad0a738e1ec02ad2dc50 | |
parent | b25480fafb2fa7c5800e7940eeb79dffbf497f70 (diff) | |
download | archlinuxewe-501aaea6d1d0ca7888003ea27d2f394d555c365b.tar.xz |
checkVersions: bugfix pypi
-rwxr-xr-x | checkVersions | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/checkVersions b/checkVersions index c87d8a325..47ca8314e 100755 --- a/checkVersions +++ b/checkVersions @@ -262,15 +262,22 @@ then elif echo "${src}" | \ grep -q "^https://pypi\.python\.org/packages/" then - qu="$( + qu=$( echo "${src}" | \ sed 's|^\(.*\)/packages/.*/\([^/]\+\)-[^/-]\+\.tar\.gz$|\1/pypi/\2/|' - )" + ) + _pkgname=$( + echo "${qu}" | \ + sed ' + s|/$|| + s|^.*/|| + ' + ) remVer="$( curl_it "${qu}" | \ - tr "\"" "\n" | \ - grep "^/pypi/\(python-\)\?${pkgname#*-}/[0-9.-]\+\$" | \ - sed "s|^/pypi/\(python-\)\?${pkgname#*-}/\([0-9.-]\+\)\$|\2|" | \ + tr '"' '\n' | \ + grep "^/pypi/\(python-\)\?${_pkgname}/[0-9.-]\+\$" | \ + sed "s|^/pypi/\(python-\)\?${_pkgname}/\([0-9.-]\+\)\$|\2|" | \ sort -V | \ tail -n1 )" |