X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1967f7230247c8599f6288bd9a29279447adfbbe..fc7ac0c1a5bc340edcfdd1d27f902c01aca1ee9f:/include/download.mk diff --git a/include/download.mk b/include/download.mk index 0558d4979..f064ee9e8 100644 --- a/include/download.mk +++ b/include/download.mk @@ -41,7 +41,7 @@ define DownloadMethod/default endef define wrap_mirror - @$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "x" || ( $(1) ) + $(if $(MIRROR),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "x" || ( $(1) ),$(1)) endef define DownloadMethod/cvs @@ -67,7 +67,7 @@ define DownloadMethod/svn cd $(TMP_DIR)/dl && \ rm -rf $(SUBDIR) && \ [ \! -d $(SUBDIR) ] && \ - svn co -r$(VERSION) $(URL) $(SUBDIR) && \ + svn co --non-interactive -r$(VERSION) $(URL) $(SUBDIR) && \ find $(SUBDIR) -name .svn | xargs rm -rf && \ echo "Packing checkout..." && \ $(call dl_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \ @@ -101,6 +101,7 @@ define Download/Defaults PROTO:= MD5SUM:= SUBDIR:= + MIRROR:=1 VERSION:= endef