From db5bea75329559e61c40ddb1c90a1dcf7e22fb31 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 27 Dec 2019 20:38:19 +0100 Subject: update-archlinux32-package: handle epoch, too --- update-archlinux32-package | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'update-archlinux32-package') 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 -- cgit v1.2.3-70-g09d2