aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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