From a7491d3c0fc1493bd934c910f428ea57fa78e31d Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 30 Dec 2019 00:49:06 +1000 Subject: Log the sha256 check call. --- apt-panopticon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index ee409a4..47d6bb0 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -675,7 +675,7 @@ local parseDebs = function(host) E('Package size mismatch - results/' .. host .. "/merged/" .. p .. ' should be ' .. sz .. ', but is ' .. fsz:sub(2, -2) .. '.', 'http', 'Integrity', host) else -- local status, fsha = APT.execute('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1') - local fsha = APT.exe('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1'):Do().result + local fsha = APT.exe('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1'):log():Do().result if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. host .. "/merged/" .. p, 'http', 'Integrity', host) end -- TODO - maybe check the PGP key, though packages are mostly not signed. end -- cgit v1.1