allow packages to forcibly disable the svn/git mirror downloading attempt by setting...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jul 2008 02:43:33 +0000 (02:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 31 Jul 2008 02:43:33 +0000 (02:43 +0000)
SVN-Revision: 12034

include/download.mk
include/package.mk

index 74986be598e84e31d331771811e7c10a8d0373cd..f064ee9e8cf32faa52e4e0566d648a0627b03814 100644 (file)
@@ -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
 
index da8de5cccfdac4daf26ab264e5eb05b7c75b96f2..8819a115647a132ebb6bd1815ed16a1e25f18bcc 100644 (file)
@@ -49,6 +49,7 @@ define Download/default
   URL:=$(PKG_SOURCE_URL)
   SUBDIR:=$(PKG_SOURCE_SUBDIR)
   PROTO:=$(PKG_SOURCE_PROTO)
+  $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR)))
   VERSION:=$(PKG_SOURCE_VERSION)
   MD5SUM:=$(PKG_MD5SUM)
 endef