mirror of
https://github.com/luzifer-aur/google-chrome-beta.git
synced 2024-11-08 13:40:02 +00:00
Fix: Update pkgrel only when version did change
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
bb12b02c3e
commit
6cec5adc39
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,6 @@ VER=$(curl -sSf https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-
|
||||||
# Insert latest version into PKGBUILD and update hashes
|
# Insert latest version into PKGBUILD and update hashes
|
||||||
sed -i \
|
sed -i \
|
||||||
-e "s/^pkgver=.*/pkgver=${VER}/" \
|
-e "s/^pkgver=.*/pkgver=${VER}/" \
|
||||||
-e 's/pkgrel=.*/pkgrel=1/' \
|
|
||||||
PKGBUILD
|
PKGBUILD
|
||||||
|
|
||||||
# Check whether this changed anything
|
# Check whether this changed anything
|
||||||
|
@ -23,6 +22,10 @@ if (git diff --exit-code PKGBUILD); then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e 's/pkgrel=.*/pkgrel=1/' \
|
||||||
|
PKGBUILD
|
||||||
|
|
||||||
updpkgsums
|
updpkgsums
|
||||||
|
|
||||||
# Update .SRCINFO
|
# Update .SRCINFO
|
||||||
|
|
Loading…
Reference in a new issue