diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 02:43:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 02:43:33 +0000 |
commit | 291e775fcd2ec242dbf0576bc8520ae5a20bbcfd (patch) | |
tree | 790ce1e8cdeed11b06ef48beb9219455f3d21cc0 /include/download.mk | |
parent | 5c9d52f04ccc1d4147df041221bf4b59c87d72a4 (diff) | |
download | mtk-20170518-291e775fcd2ec242dbf0576bc8520ae5a20bbcfd.zip mtk-20170518-291e775fcd2ec242dbf0576bc8520ae5a20bbcfd.tar.gz mtk-20170518-291e775fcd2ec242dbf0576bc8520ae5a20bbcfd.tar.bz2 |
allow packages to forcibly disable the svn/git mirror downloading attempt by setting PKG_SOURCE_MIRROR:=0 (#3815)
SVN-Revision: 12034
Diffstat (limited to 'include/download.mk')
-rw-r--r-- | include/download.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/download.mk b/include/download.mk index 74986be..f064ee9 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 @@ -101,6 +101,7 @@ define Download/Defaults PROTO:= MD5SUM:= SUBDIR:= + MIRROR:=1 VERSION:= endef |