aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authoronefang2019-12-02 06:47:48 +1000
committeronefang2019-12-02 06:47:48 +1000
commit84e17da7cebebfff8dbad7bcdbaef1c14e380036 (patch)
tree7a6ef9f0f5f454f10b4217b08b5b8c51cdf3c568 /apt-panopticon.lua
parentTypo-- (diff)
downloadapt-panopticon-84e17da7cebebfff8dbad7bcdbaef1c14e380036.zip
apt-panopticon-84e17da7cebebfff8dbad7bcdbaef1c14e380036.tar.gz
apt-panopticon-84e17da7cebebfff8dbad7bcdbaef1c14e380036.tar.bz2
apt-panopticon-84e17da7cebebfff8dbad7bcdbaef1c14e380036.tar.xz
TODO+=2
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index da349fd..5aaa858 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -950,6 +950,7 @@ if 0 < #arg then
950 execute('diff -U 0 results_old/pkgmaster.devuan.org/merged/dists/' .. n .. '/Release.SORTED ' .. 950 execute('diff -U 0 results_old/pkgmaster.devuan.org/merged/dists/' .. n .. '/Release.SORTED ' ..
951 'results/pkgmaster.devuan.org/merged/dists/' .. n .. '/Release.SORTED ' .. 951 'results/pkgmaster.devuan.org/merged/dists/' .. n .. '/Release.SORTED ' ..
952 '| grep -v "@@" | grep "^+" | grep "Packages.xz$" | cut -c 77- >results/NEW_Release_' .. n .. '.txt') 952 '| grep -v "@@" | grep "^+" | grep "Packages.xz$" | cut -c 77- >results/NEW_Release_' .. n .. '.txt')
953-- TODO - Maybe check the date in Release, though since they are updated daily, is there any point? Perhaps it's for checking amprolla got run?
953 else 954 else
954-- TODO - compare to the pkgmaster copy. 955-- TODO - compare to the pkgmaster copy.
955 end 956 end
@@ -1012,6 +1013,7 @@ if 0 < #arg then
1012 if m ~= fm:sub(2, -2) then E('Package MD5 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end 1013 if m ~= fm:sub(2, -2) then E('Package MD5 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end
1013 local status, fsha = execute('sha256sum results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 1') 1014 local status, fsha = execute('sha256sum results/' .. pu.host .. "/merged/" .. p .. ' | cut -d " " -f 1')
1014 if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end 1015 if sha ~= fsha:sub(2, -2) then E('Package SHA256 sum mismatch - results/' .. pu.host .. "/merged/" .. p, 'http', 'Integrity', pu.host) end
1016-- TODO - maybe check the PGP key, though packages are mostly not signed.
1015 end 1017 end
1016 end 1018 end
1017 if testing("Updated") then 1019 if testing("Updated") then