summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acme2certifier/PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/acme2certifier/PKGBUILD b/acme2certifier/PKGBUILD
index 33d3bbcf8..9eb7597e7 100644
--- a/acme2certifier/PKGBUILD
+++ b/acme2certifier/PKGBUILD
@@ -30,9 +30,11 @@ sha512sums=('SKIP'
'3ed87346bf0776f50e452b1928c8f24db5498a5af1010042e9680ca136242f49e78d30ebca5e4328f485d1c051ab51f859a1ae2f936e0c6eb5b1cde700b3b201')
pkgver() {
- _commit=$(
- git -C "${pkgname}" rev-parse origin/devel
- )
+ for _trial in 'origin/devel' 'devel'; do
+ _commit=$(
+ git -C "${pkgname}" rev-parse "${_trial}" 2>/dev/null
+ ) && break
+ done
_version_line=$(
git -C "${pkgname}" archive ${_commit} -- acme/version.py \
| tar -Ox \