[openwrt/openwrt] include: download.mk: do not check PKG_MIRROR_HASH when set to "skip"
LEDE Commits
lede-commits at lists.infradead.org
Fri Nov 7 03:25:45 PST 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2df73702c52b2dec7debb8b618d556385cf10f70
commit 2df73702c52b2dec7debb8b618d556385cf10f70
Author: Matthias Franck <matthias.franck at softathome.com>
AuthorDate: Wed Nov 5 14:43:53 2025 +0100
include: download.mk: do not check PKG_MIRROR_HASH when set to "skip"
In commit 042996b46bd41292ef1fa2d58e3b824a547f4c55 compilation of git repos is made to fail when PKG_MIRROR_HASH is not correct.
It looks like it was forgotten that in openwrt there is a posibility to set the PKG_MIRROR_HASH to "skip".
In this case the hash check should not be performed and compilation should continue as expected.
This is especially very usefull when doing local testing and development with git repos.
Signed-off-by: Matthias Franck <matthias.franck at softathome.com>
Link: https://github.com/openwrt/openwrt/pull/20655
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
include/download.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/download.mk b/include/download.mk
index e87501563a..3649da4f88 100644
--- a/include/download.mk
+++ b/include/download.mk
@@ -159,7 +159,7 @@ $(if $(if $(MIRROR), \
( $(3) ) \
$(if $(filter-out x,$(MIRROR_HASH)), && ( \
file_hash="$$$$($(MKHASH) sha256 "$(DL_DIR)/$(FILE)")"; \
- [ "$$$$file_hash" = "$(MIRROR_HASH)" ] || { \
+ [ "$$$$file_hash" = "$(MIRROR_HASH)" ] || [ "$(MIRROR_HASH)" = "skip" ] || { \
echo "Hash mismatch for file $(FILE): expected $(MIRROR_HASH), got $$$$file_hash"; \
false; \
}; \
More information about the lede-commits
mailing list