[OpenWrt-Devel] [PATCH] include: download.mk: If checkouts fail, attempt default download method

Pushpal Sidhu psidhu at gateworks.com
Tue Sep 15 16:01:02 EDT 2015


This will allow a more robust download system, especially in cases when
building an older release where a source checkout system is gone.

Signed-off-by: Pushpal Sidhu <psidhu at gateworks.com>
---
 include/download.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/download.mk b/include/download.mk
index adaa2e6..eb86faf 100644
--- a/include/download.mk
+++ b/include/download.mk
@@ -46,7 +46,7 @@ define DownloadMethod/default
 endef
 
 define wrap_mirror
-	$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_MD5SUM))),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)" || ( $(1) ),$(1))
+	$(if $(if $(MIRROR),$(filter-out x,$(MIRROR_MD5SUM))),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)" || ( $(1) ), ( $(1) ) || $(DownloadMethod/default))
 endef
 
 define DownloadMethod/cvs
-- 
2.5.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list