diff options
author | onefang | 2019-12-30 00:49:06 +1000 |
---|---|---|
committer | onefang | 2019-12-30 00:49:06 +1000 |
commit | a7491d3c0fc1493bd934c910f428ea57fa78e31d (patch) | |
tree | 16acacf2b54a81a2b76bda23b088d74211da3ac6 | |
parent | Fix Updated, this time for sure, until next time. (diff) | |
download | apt-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-x | apt-panopticon.lua | 2 |
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 |