diff options
author | Knut Ahlers | 2018-12-28 12:39:00 +0100 |
---|---|---|
committer | Knut Ahlers | 2018-12-28 12:39:00 +0100 |
commit | 209a3319ff5b93dfcefb46b9176fd0581cb16c81 (patch) | |
tree | d4c507f87816e2c1b1b5c62a5cc5c7644c5750ec | |
parent | 1c50955993631f14732fdb552aa5bf412a60996b (diff) | |
download | aur-209a3319ff5b93dfcefb46b9176fd0581cb16c81.tar.gz |
Reset rel only on updated package
Signed-off-by: Knut Ahlers <knut@ahlers.me>
-rwxr-xr-x | update_version.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/update_version.sh b/update_version.sh index c0f8f52df100..439c9794d160 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 |