aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-30 00:49:06 +1000
committeronefang2019-12-30 00:49:06 +1000
commita7491d3c0fc1493bd934c910f428ea57fa78e31d (patch)
tree16acacf2b54a81a2b76bda23b088d74211da3ac6
parentFix Updated, this time for sure, until next time. (diff)
downloadapt-panopticon-a7491d3c0fc1493bd934c910f428ea57fa78e31d.zip
apt-panopticon-a7491d3c0fc1493bd934c910f428ea57fa78e31d.tar.gz
apt-panopticon-a7491d3c0fc1493bd934c910f428ea57fa78e31d.tar.bz2
apt-panopticon-a7491d3c0fc1493bd934c910f428ea57fa78e31d.tar.xz
Log the sha256 check call.
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
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)
675 E('Package size mismatch - results/' .. host .. "/merged/" .. p .. ' should be ' .. sz .. ', but is ' .. fsz:sub(2, -2) .. '.', 'http', 'Integrity', host) 675 E('Package size mismatch - results/' .. host .. "/merged/" .. p .. ' should be ' .. sz .. ', but is ' .. fsz:sub(2, -2) .. '.', 'http', 'Integrity', host)
676 else 676 else
677-- local status, fsha = APT.execute('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1') 677-- local status, fsha = APT.execute('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1')
678 local fsha = APT.exe('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1'):Do().result 678 local fsha = APT.exe('sha256sum results/' .. host .. "/merged/" .. p .. ' | cut -d " " -f 1'):log():Do().result
679 if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. host .. "/merged/" .. p, 'http', 'Integrity', host) end 679 if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. host .. "/merged/" .. p, 'http', 'Integrity', host) end
680-- TODO - maybe check the PGP key, though packages are mostly not signed. 680-- TODO - maybe check the PGP key, though packages are mostly not signed.
681 end 681 end