mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 21:24:35 +04:00
luci.mk: make APK version compliant
APK expects hashes to be prefixed with a ~ Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
2
luci.mk
2
luci.mk
@@ -85,7 +85,7 @@ define findrev
|
|||||||
if [ -n "$$1" ]; then
|
if [ -n "$$1" ]; then
|
||||||
secs="$$(($$1 % 86400))"; \
|
secs="$$(($$1 % 86400))"; \
|
||||||
yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
|
yday="$$(date --utc --date="@$$1" "+%y.%j")"; \
|
||||||
printf 'git-%s.%05d-%s' "$$yday" "$$secs" "$$2"; \
|
printf 'git-%s.%05d~%s' "$$yday" "$$secs" "$$2"; \
|
||||||
else \
|
else \
|
||||||
echo "unknown"; \
|
echo "unknown"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|||||||
Reference in New Issue
Block a user