From 8cc0be8c882a094ec4273797ca888bd37597b2bd Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Wed, 28 Oct 2009 15:07:40 +0100 Subject: [PATCH] chroot: actually verify checksum for chroot tarballs Signed-off-by: Gordon Hecker --- local/e2build.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/local/e2build.lua b/local/e2build.lua index 56b66bd..fd68a43 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -272,6 +272,12 @@ function e2build.setup_chroot(info, r, return_flags) if not path then return false, e:cat(re) end + if f.sha1 then + rc, re = e2tool.verify_hash(info, f.server, f.location, f.sha1) + if not rc then + return false, e:cat(re) + end + end local tartype if path:match("tgz$") or path:match("tar.gz$") then tartype = "tar.gz" -- 2.39.5