Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/update-archlinux32-package
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-28 09:41:41 +0100
committerErich Eckner <git@eckner.net>2019-01-28 09:41:41 +0100
commit486c4f5f29d014e67b9b84f99eda98acfc5048dc (patch)
tree817c88ee4d22dfa219a174ec4d6492cf92289529 /update-archlinux32-package
parent428575acd9728473516d0a7876e43ec4023090ee (diff)
update-archlinux32-package: python-pip-bootstrap needs bump of pkgver, too
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-xupdate-archlinux32-package24
1 files changed, 21 insertions, 3 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index 5418d09..b92505f 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -93,8 +93,9 @@ case "${pkgname}" in
update_path='checksum'
;;
'python-pip-bootstrap')
- # a package without upstream which is updated by solely updating its checksum
- update_path='checksum without upstream'
+ # a package without upstream which is updated by updating its
+ # version (according to watch-versions) and checksum
+ update_path='version and checksum without upstream'
;;
'linux'|'linux-lts'|'linux-zen')
# a kernel which exists upstream -> different config and checksums
@@ -236,7 +237,24 @@ case ${update_path} in
fi
git -C "${git_repo_path}" commit "${repo}/${pkgname}/PKGBUILD" -m "${repo}/${pkgname}: new version => new checksum"
;;
- 'checksum without upstream')
+ 'version and checksum without upstream')
+ newver=$(
+ "$(dirname "$(readlink -e "$0")")/watch-versions" -m "${pkgname}" \
+ | sed '
+ s/^newver="\([^"]\+\)";$/\1/
+ t
+ d
+ '
+ )
+ if [ -z "${newver}" ]; then
+ >&2 printf 'watch-versions reports no new version for %s\n' "${pkgname}"
+ exit
+ fi
+ sed -i '
+ s/^pkgver=.*$/pkgver='"'${newver}'"'/
+ s/^pkgrel=.*$/pkgrel='"'1'"'/
+ ' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"
+ git -C "${git_repo_path}/${repo}/${pkgname}" diff HEAD -- PKGBUILD
scp -r "${git_repo_path}/${repo}/${pkgname}" \
"arch32-test:${pkgname}"
sums=$(