[OpenWrt-Devel] [PATCH] include: download.mk: If checkouts fail, attempt default download method
John Crispin
blogic at openwrt.org
Wed Sep 16 04:26:42 EDT 2015
On 15/09/2015 22:01, Pushpal Sidhu wrote:
> 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>
although this looks good at first glance we notice on a closer
inspection that the DL will happen without the md5 check and o on.
sorry, cant merge it like that.
> ---
> 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
>
_______________________________________________
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