summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKnut Ahlers2018-12-28 12:39:00 +0100
committerKnut Ahlers2018-12-28 12:39:00 +0100
commit209a3319ff5b93dfcefb46b9176fd0581cb16c81 (patch)
treed4c507f87816e2c1b1b5c62a5cc5c7644c5750ec
parent1c50955993631f14732fdb552aa5bf412a60996b (diff)
downloadaur-209a3319ff5b93dfcefb46b9176fd0581cb16c81.tar.gz
Reset rel only on updated package
Signed-off-by: Knut Ahlers <knut@ahlers.me>
-rwxr-xr-xupdate_version.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/update_version.sh b/update_version.sh
index c0f8f52df10..439c9794d16 100755
--- a/update_version.sh
+++ b/update_version.sh
@@ -10,7 +10,6 @@ VER=$(curl -sSfL "https://lv.luzifer.io/catalog-api/dust/latest.txt?p=version")
# Insert latest version into PKGBUILD
sed -i \
-e "s/^pkgver=.*/pkgver=${VER}/" \
- -e 's/pkgrel=.*/pkgrel=1/' \
PKGBUILD
# Check whether this changed anything
@@ -19,6 +18,11 @@ if (git diff --exit-code PKGBUILD); then
exit 0
fi
+# Reset pkgrel
+sed -i \
+ -e 's/pkgrel=.*/pkgrel=1/' \
+ PKGBUILD
+
# Update source hashes
updpkgsums