From 45e42754c7e705c8e999a9db9fc380390af259f4 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 21 Mar 2011 23:02:06 +0000 Subject: [PATCH] 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 --- include/download.mk | 3 ++- include/package.mk | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/download.mk b/include/download.mk index fd197ea21..7009bfcd4 100644 --- a/include/download.mk +++ b/include/download.mk @@ -45,7 +45,7 @@ define DownloadMethod/default endef 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 define DownloadMethod/cvs @@ -158,6 +158,7 @@ define Download/Defaults MD5SUM:= SUBDIR:= MIRROR:=1 + MIRROR_MD5SUM:=x VERSION:= endef diff --git a/include/package.mk b/include/package.mk index 2ebd66d11..1c2c179cd 100644 --- a/include/package.mk +++ b/include/package.mk @@ -79,6 +79,7 @@ define Download/default SUBDIR:=$(PKG_SOURCE_SUBDIR) PROTO:=$(PKG_SOURCE_PROTO) $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) + $(if $(PKG_MIRROR_MD5SUM),MIRROR_MD5SUM:=$(PKG_MIRROR_MD5SUM)) VERSION:=$(PKG_SOURCE_VERSION) MD5SUM:=$(PKG_MD5SUM) endef -- 2.20.1