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 | |
parent | 87ff4a9ce5c2b8787af12f14a1b8565ffd189382 (diff) | |
download | archlinuxewe-54cc44ff9b3042b339ed570251593f630b07ffd8.tar.xz |
bumpVersion und checkVersions können jetzt auch hash in der url von pypi-Paketen aktualisieren
-rwxr-xr-x | bumpVersion | 4 | ||||
-rwxr-xr-x | checkVersions | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/bumpVersion b/bumpVersion index f88e43aa5..872c3318b 100755 --- a/bumpVersion +++ b/bumpVersion @@ -39,8 +39,8 @@ cd "${paket}" sed 's|pkgver=.*$|pkgver='"${remVer}"'|; s|pkgrel=.*$|pkgrel=1|; s@^\s*\(sha[[:digit:]]\+sums\|md5sums\)=@sha512sums=@; - /^\(sha[[:digit:]]\+\|md5\)sums_/d -' -i PKGBUILD + /^\(sha[[:digit:]]\+\|md5\)sums_/d; +'"${sedExtra}" -i PKGBUILD sed ' :begin; diff --git a/checkVersions b/checkVersions index 18cd389ec..0c1584a9f 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 |