summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbumpVersion4
-rwxr-xr-xcheckVersions13
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