summaryrefslogtreecommitdiff
path: root/update-archlinux32-package
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-12-27 20:38:19 +0100
committerErich Eckner <git@eckner.net>2019-12-27 20:38:19 +0100
commitdb5bea75329559e61c40ddb1c90a1dcf7e22fb31 (patch)
tree2bfaef083aec01cd6c919528d6469cafa1712a92 /update-archlinux32-package
parentf50b0e9f0f074024ef1e6cafbc749061379b0a05 (diff)
downloaddevops-db5bea75329559e61c40ddb1c90a1dcf7e22fb31.tar.xz
update-archlinux32-package: handle epoch, too
Diffstat (limited to 'update-archlinux32-package')
-rwxr-xr-xupdate-archlinux32-package5
1 files changed, 3 insertions, 2 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package
index e45b892..92afa57 100755
--- a/update-archlinux32-package
+++ b/update-archlinux32-package
@@ -101,7 +101,7 @@ case "${pkgname}" in
# an upstream package which is updated by solely updating its checksum
update_path='checksum'
;;
- 'python-pip-bootstrap')
+ 'python-pip-bootstrap'|'python-setuptools-bootstrap')
# a package without upstream which is updated by updating its
# version (according to watch-versions) and checksum
update_path='version and checksum without upstream'
@@ -278,7 +278,8 @@ case ${update_path} in
exit
fi
sed -i '
- s/^pkgver=.*$/pkgver='"'${newver}'"'/
+ s/^epoch=.*$/epoch='"'${newver%:*}'"'/
+ s/^pkgver=.*$/pkgver='"'${newver#*:}'"'/
s/^pkgrel=.*$/pkgrel='"'1'"'/
' "${git_repo_path}/${repo}/${pkgname}/PKGBUILD"
git -C "${git_repo_path}/${repo}/${pkgname}" diff HEAD -- PKGBUILD