aboutsummaryrefslogtreecommitdiffstats
path: root/include/download.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-31 02:43:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-31 02:43:33 +0000
commit4b3284e01799fb3cf91eeae31f3cb1f1a3605735 (patch)
treeacc96b72b88c3c77eec935f15247728f9e462188 /include/download.mk
parenta1057dc8af8a1ee77103c1e6deb13e695b4a185a (diff)
downloadupstream-4b3284e01799fb3cf91eeae31f3cb1f1a3605735.tar.gz
upstream-4b3284e01799fb3cf91eeae31f3cb1f1a3605735.tar.bz2
upstream-4b3284e01799fb3cf91eeae31f3cb1f1a3605735.zip
allow packages to forcibly disable the svn/git mirror downloading attempt by setting PKG_SOURCE_MIRROR:=0 (#3815)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12034 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/download.mk')
-rw-r--r--include/download.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/download.mk b/include/download.mk
index 74986be598..f064ee9e8c 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