summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKnut Ahlers2018-12-27 11:21:51 +0100
committerKnut Ahlers2018-12-27 11:21:51 +0100
commit9e7cca5b975c7388f1c43ac4787e92f2a2d04a9b (patch)
tree4f69654bc48f58f10fd85d6b2055cecf6c64bab2
parent09859373f72d4ad8b2906b01d11cfa352562f07c (diff)
downloadaur-9e7cca5b975c7388f1c43ac4787e92f2a2d04a9b.tar.gz
Reset pkgrel on update
Signed-off-by: Knut Ahlers <knut@ahlers.me>
-rwxr-xr-xupdate_version.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/update_version.sh b/update_version.sh
index a51aa96b2db..0a11328dada 100755
--- a/update_version.sh
+++ b/update_version.sh
@@ -11,7 +11,10 @@ VER=$(curl -sL "https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/ot
grep "${PKG}" | cut -d ' ' -f 2)
# Insert latest version into PKGBUILD and update hashes
-sed -i "s/^pkgver=.*/pkgver=${VER}/" PKGBUILD
+sed -i \
+ -e "s/^pkgver=.*/pkgver=${VER}/" \
+ -e 's/pkgrel=.*/pkgrel=1/' \
+ PKGBUILD
updpkgsums
# Check whether this changed anything