add support for md5sum checks for mirrored tarballs of packages with version control...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 21 Mar 2011 23:02:06 +0000 (23:02 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 21 Mar 2011 23:02:06 +0000 (23:02 +0000)
SVN-Revision: 26260

include/download.mk
include/package.mk

index fd197ea2167766ff6de9ee017141e944bf25c0b9..7009bfcd44c58d18fb8b92fdbe72aea84fbce515 100644 (file)
@@ -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
 
index 2ebd66d119c7fe714123d9d0df708e1324e36f5f..1c2c179cdaf1a728c8efc6f90871152f1bc620d3 100644 (file)
@@ -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