From 51044dc6dd9ed10a5e14b74787647be585e3954f Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 11 Dec 2019 02:24:06 +1000 Subject: More info for package size mismatches. --- apt-panopticon.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index e454740..dd0ad58 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -758,8 +758,7 @@ if 0 < #arg then local status, fsz = APT.execute('ls -l results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 5-5') if APT.testing("Integrity") then if sz ~= fsz:sub(2, -2) then -- The sub bit is to slice off the EOLs at each end. - E('Package size mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) - print('|' .. sz .. '~=' .. fsz:sub(2, -2) .. '|') + E('Package size mismatch - results/' .. pu.host .. "/merged/" .. p .. ' should be ' .. sz .. ', but is ' .. fsz:sub(2, -2) .. '.', 'http', 'Integrity', pu.host) else local status, fsha = APT.execute('sha256sum results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 1') if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end -- cgit v1.1