summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-23 09:06:28 +0200
committerErich Eckner <git@eckner.net>2018-04-23 09:06:28 +0200
commit2f9cd200577270c6d3469ffb92417884996f2192 (patch)
tree51ab1044d73a0a9edaadc4d4aab368eefad735a1
parentf98eef77ca932aca5679eae8e4e73e17961d1e0a (diff)
downloadarchlinuxewe.git.save-2f9cd200577270c6d3469ffb92417884996f2192.tar.xz
checkVersions: adopt to new pypi pages
-rwxr-xr-xcheckVersions6
1 files changed, 3 insertions, 3 deletions
diff --git a/checkVersions b/checkVersions
index 5c53d99d..55535b00 100755
--- a/checkVersions
+++ b/checkVersions
@@ -320,7 +320,7 @@ then
then
qu=$(
echo "${src}" | \
- sed 's|^\(.*\)/packages/.*/\([^/]\+\)-[^/-]\+\.tar\.gz$|\1/pypi/\2/|'
+ sed 's|^.*/packages/.*/\([^/]\+\)-[^/-]\+\.tar\.gz$|https://pypi.org/project/\1/|'
)
_pkgname=$(
echo "${qu}" | \
@@ -332,8 +332,8 @@ then
remVer="$(
curl_it "${qu}" | \
tr '"' '\n' | \
- grep "^/pypi/\(python-\)\?${_pkgname}/[0-9.-]\+\$" | \
- sed "s|^/pypi/\(python-\)\?${_pkgname}/\([0-9.-]\+\)\$|\2|" | \
+ grep "^/project/\(python-\)\?${_pkgname}/[0-9.-]\+/\$" | \
+ sed "s|^/project/\(python-\)\?${_pkgname}/\([0-9.-]\+\)/\$|\2|" | \
sort -V | \
tail -n1
)"