diff options
author | Erich Eckner <git@eckner.net> | 2016-11-23 09:35:34 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-11-23 09:39:59 +0100 |
commit | 54cc44ff9b3042b339ed570251593f630b07ffd8 (patch) | |
tree | 9e4b212e21492f22ad8aaca6e879e2fdcb7f4dee /checkVersions | |
parent | 87ff4a9ce5c2b8787af12f14a1b8565ffd189382 (diff) | |
download | archlinuxewe.git.save-54cc44ff9b3042b339ed570251593f630b07ffd8.tar.xz |
bumpVersion und checkVersions können jetzt auch hash in der url von pypi-Paketen aktualisieren
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions index 18cd389e..0c1584a9 100755 --- a/checkVersions +++ b/checkVersions @@ -183,6 +183,19 @@ then sort -V | \ tail -n1 )" + remHash="$( + curl "${qu}${remVer}" 2> /dev/null | \ + tr '"#' '\n' | \ + grep -m1 "^https://pypi\.python\.org/packages/.*/[0-9a-f]\{60\}/${pkgname#*-}-${remVer}\.tar\.\(gz\|bz2\|xz\)\$" | \ + sed 's|/[^/]\+$|/|; s|^https://pypi\.python\.org/packages/|/|' + )" + locHash="$( + echo "${src}" | \ + sed 's|/[^/]\+$|/|; s|^https://pypi\.python\.org/packages/|/|' + )" + ${maschinenlesbar} && \ + [ "${remHash}" != "${locHash}" ] && \ + echo "sedExtra='s@${locHash}@${remHash}@g;'" elif echo "${src}" | \ grep -q "//bundles\.openttdcoop\.org/" then |