1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-30 18:14:04 +02:00

add support for md5sum checks for mirrored tarballs of packages with version control source urls

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26260 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2011-03-21 23:02:06 +00:00
parent d80e0f114c
commit 45e42754c7
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ define DownloadMethod/default
endef endef
define wrap_mirror define wrap_mirror
$(if $(MIRROR),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "x" || ( $(1) ),$(1)) $(if $(MIRROR),@$(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MIRROR_MD5SUM)" || ( $(1) ),$(1))
endef endef
define DownloadMethod/cvs define DownloadMethod/cvs
@ -158,6 +158,7 @@ define Download/Defaults
MD5SUM:= MD5SUM:=
SUBDIR:= SUBDIR:=
MIRROR:=1 MIRROR:=1
MIRROR_MD5SUM:=x
VERSION:= VERSION:=
endef endef

View File

@ -79,6 +79,7 @@ define Download/default
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))) $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR)))
$(if $(PKG_MIRROR_MD5SUM),MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM))
VERSION:=$(PKG_SOURCE_VERSION) VERSION:=$(PKG_SOURCE_VERSION)
MD5SUM:=$(PKG_MD5SUM) MD5SUM:=$(PKG_MD5SUM)
endef endef