summaryrefslogtreecommitdiff
path: root/dbmodel
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-12 11:14:13 +0200
committerErich Eckner <git@eckner.net>2021-04-12 11:14:13 +0200
commit0df7805764ce3183e73f0ab9a37098b4a34d1366 (patch)
treeef1b34b56a022dd15384900f45de00aa3a2d8290 /dbmodel
parent8c3768b384fecf48aff8dfce27490a402ee6f0f2 (diff)
downloadarchlinuxewe-0df7805764ce3183e73f0ab9a37098b4a34d1366.tar.xz
repair pkgver() to give *currently*checked*out* version, not *newest*
Diffstat (limited to 'dbmodel')
-rwxr-xr-xdbmodel/PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/dbmodel/PKGBUILD b/dbmodel/PKGBUILD
index 79ee6f30d..2579a16e9 100755
--- a/dbmodel/PKGBUILD
+++ b/dbmodel/PKGBUILD
@@ -31,9 +31,8 @@ sha512sums=('SKIP')
pkgver(){
cd "${pkgname}"
- git fetch --all >/dev/null 2>&1
- _commit=$(
- git rev-parse master
+ _rev=$(
+ git rev-parse --short "${_commit}"
)
printf '%s.r%s.%s\n' \
"$(