mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:46:16 +02:00
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
This commit is contained in:
parent
808f115d37
commit
2f9873da2b
@ -41,7 +41,7 @@ define DownloadMethod/default
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define wrap_mirror
|
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
|
endef
|
||||||
|
|
||||||
define DownloadMethod/cvs
|
define DownloadMethod/cvs
|
||||||
@ -101,6 +101,7 @@ define Download/Defaults
|
|||||||
PROTO:=
|
PROTO:=
|
||||||
MD5SUM:=
|
MD5SUM:=
|
||||||
SUBDIR:=
|
SUBDIR:=
|
||||||
|
MIRROR:=1
|
||||||
VERSION:=
|
VERSION:=
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ define Download/default
|
|||||||
URL:=$(PKG_SOURCE_URL)
|
URL:=$(PKG_SOURCE_URL)
|
||||||
SUBDIR:=$(PKG_SOURCE_SUBDIR)
|
SUBDIR:=$(PKG_SOURCE_SUBDIR)
|
||||||
PROTO:=$(PKG_SOURCE_PROTO)
|
PROTO:=$(PKG_SOURCE_PROTO)
|
||||||
|
$(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR)))
|
||||||
VERSION:=$(PKG_SOURCE_VERSION)
|
VERSION:=$(PKG_SOURCE_VERSION)
|
||||||
MD5SUM:=$(PKG_MD5SUM)
|
MD5SUM:=$(PKG_MD5SUM)
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user