summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-01 13:34:32 +0100
committerErich Eckner <git@eckner.net>2018-11-01 13:34:32 +0100
commit8126fe88ff1434fb6c784dcee0b1f68bef1be78b (patch)
tree4fa4a34f44650e8a60c6c5b03b3f5f2df340e4d3
parent6a0f4e0b1765d6817aba8a14b8a5c2779c5bb7be (diff)
downloadarchlinuxewe-8126fe88ff1434fb6c784dcee0b1f68bef1be78b.tar.xz
openttd-git: do not give version of "master", but of "${_commit}"
-rw-r--r--openttd-git/PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd-git/PKGBUILD b/openttd-git/PKGBUILD
index 1737882e4..c6c695e1b 100644
--- a/openttd-git/PKGBUILD
+++ b/openttd-git/PKGBUILD
@@ -43,10 +43,10 @@ sha512sums=('SKIP'
pkgver() {
printf '%s.%s\n' \
"$((
- $(git -C "${srcdir}/${pkgname}" rev-list --count master ^f84ad5f7c) + 28004
+ $(git -C "${srcdir}/${pkgname}" rev-list --count "${_commit}" ^f84ad5f7c) + 28004
))" \
"$(
- git -C "${srcdir}/${pkgname}" rev-parse --short=9 master
+ git -C "${srcdir}/${pkgname}" rev-parse --short=9 "${_commit}"
)"
}