pkg-download: enable hash check for git downloads
For a while already, our git downloaded tarballs are reproducible, so we can actually check the hash for them. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
c7010ae3ad
commit
b1679b745c
|
@ -77,6 +77,7 @@ define DOWNLOAD_GIT
|
||||||
$(EXTRA_ENV) $(DL_WRAPPER) -b git \
|
$(EXTRA_ENV) $(DL_WRAPPER) -b git \
|
||||||
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
-o $(DL_DIR)/$($(PKG)_SOURCE) \
|
||||||
$(if $($(PKG)_GIT_SUBMODULES),-r) \
|
$(if $($(PKG)_GIT_SUBMODULES),-r) \
|
||||||
|
-H $(PKGDIR)/$($(PKG)_RAWNAME).hash \
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
-- \
|
-- \
|
||||||
$($(PKG)_SITE) \
|
$($(PKG)_SITE) \
|
||||||
|
@ -225,7 +226,7 @@ define SOURCE_CHECK
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define DOWNLOAD_INNER
|
define DOWNLOAD_INNER
|
||||||
$(Q)$(if $(filter bzr cvs git hg svn,$($(PKG)_SITE_METHOD)),export BR_NO_CHECK_HASH_FOR=$(2);) \
|
$(Q)$(if $(filter bzr cvs hg svn,$($(PKG)_SITE_METHOD)),export BR_NO_CHECK_HASH_FOR=$(2);) \
|
||||||
if test -n "$(call qstrip,$(BR2_PRIMARY_SITE))" ; then \
|
if test -n "$(call qstrip,$(BR2_PRIMARY_SITE))" ; then \
|
||||||
case "$(call geturischeme,$(BR2_PRIMARY_SITE))" in \
|
case "$(call geturischeme,$(BR2_PRIMARY_SITE))" in \
|
||||||
file) $(call $(3)_LOCALFILES,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
|
file) $(call $(3)_LOCALFILES,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
|
||||||
|
|
Loading…
Reference in a new issue