aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-11 02:24:06 +1000
committeronefang2019-12-11 02:24:06 +1000
commit51044dc6dd9ed10a5e14b74787647be585e3954f (patch)
tree3eb64f2159fd1a0317bcab76063ed3652686a91c
parentClean up the graph a bit. (diff)
downloadapt-panopticon-51044dc6dd9ed10a5e14b74787647be585e3954f.zip
apt-panopticon-51044dc6dd9ed10a5e14b74787647be585e3954f.tar.gz
apt-panopticon-51044dc6dd9ed10a5e14b74787647be585e3954f.tar.bz2
apt-panopticon-51044dc6dd9ed10a5e14b74787647be585e3954f.tar.xz
More info for package size mismatches.
-rwxr-xr-xapt-panopticon.lua3
1 files changed, 1 insertions, 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
758 local status, fsz = APT.execute('ls -l results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 5-5') 758 local status, fsz = APT.execute('ls -l results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 5-5')
759 if APT.testing("Integrity") then 759 if APT.testing("Integrity") then
760 if sz ~= fsz:sub(2, -2) then -- The sub bit is to slice off the EOLs at each end. 760 if sz ~= fsz:sub(2, -2) then -- The sub bit is to slice off the EOLs at each end.
761 E('Package size mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) 761 E('Package size mismatch - results/' .. pu.host .. "/merged/" .. p .. ' should be ' .. sz .. ', but is ' .. fsz:sub(2, -2) .. '.', 'http', 'Integrity', pu.host)
762 print('|' .. sz .. '~=' .. fsz:sub(2, -2) .. '|')
763 else 762 else
764 local status, fsha = APT.execute('sha256sum results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 1') 763 local status, fsha = APT.execute('sha256sum results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 1')
765 if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end 764 if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end