luci.mk: make APK version compliant
authorPaul Spooren <mail@aparcar.org>
Thu, 21 Mar 2024 13:40:38 +0000 (14:40 +0100)
committerPaul Spooren <mail@aparcar.org>
Thu, 21 Mar 2024 13:56:42 +0000 (14:56 +0100)
APK expects hashes to be prefixed with a ~

Signed-off-by: Paul Spooren <mail@aparcar.org>
luci.mk

diff --git a/luci.mk b/luci.mk
index f348721fff7863ea7b3e7acdfe14660e7817b596..12cdd6de901cfa5dbda1f119afd8f715018f6de2 100644 (file)
--- a/luci.mk
+++ b/luci.mk
@@ -85,7 +85,7 @@ define findrev
       if [ -n "$$1" ]; then
         secs="$$(($$1 % 86400))"; \
         yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
-        printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2"; \
+        printf 'git-%s.%05d~%s' "$$yday" "$$secs" "$$2"; \
       else \
         echo "unknown"; \
       fi; \