diff options
author | onefang | 2019-12-31 15:47:34 +1000 |
---|---|---|
committer | onefang | 2019-12-31 15:47:34 +1000 |
commit | b0f2e44c1dc6ec26af2178b0ea72660e94c0f8d5 (patch) | |
tree | 8e2920a1fa40bd96b9bb46d425b5d75c1cb2fb69 | |
parent | Debian changed their keyring. (diff) | |
download | apt-panopticon-b0f2e44c1dc6ec26af2178b0ea72660e94c0f8d5.zip apt-panopticon-b0f2e44c1dc6ec26af2178b0ea72660e94c0f8d5.tar.gz apt-panopticon-b0f2e44c1dc6ec26af2178b0ea72660e94c0f8d5.tar.bz2 apt-panopticon-b0f2e44c1dc6ec26af2178b0ea72660e94c0f8d5.tar.xz |
Check if reference packages are still current.
No idea if this'll work, can't test it easily.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 0ef3bf5..43eeccf 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -754,6 +754,16 @@ local parsePackages = function(host) | |||
754 | os.execute('diff -U 0 Packages/' .. n .. dir .. 'Packages_parsed-sorted ' .. | 754 | os.execute('diff -U 0 Packages/' .. n .. dir .. 'Packages_parsed-sorted ' .. |
755 | 'results/' .. APT.options.referenceSite.value .. '/merged/dists/' .. n .. dir .. 'Packages_parsed-sorted ' .. | 755 | 'results/' .. APT.options.referenceSite.value .. '/merged/dists/' .. n .. dir .. 'Packages_parsed-sorted ' .. |
756 | ' | grep -E "^\\+" | grep -Ev "^\\+\\+\\+|^---" >>results/NEW_' .. list.out .. '_TMP_' .. n .. '.txt') | 756 | ' | grep -E "^\\+" | grep -Ev "^\\+\\+\\+|^---" >>results/NEW_' .. list.out .. '_TMP_' .. n .. '.txt') |
757 | for i, s in pairs(referenceDebs) do | ||
758 | if 0 < Apt.exe('grep "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):Do().status then | ||
759 | print('Reference package is out of date - ' .. s) | ||
760 | end | ||
761 | end | ||
762 | for i, s in pairs(referenceDevs) do | ||
763 | if 0 < Apt.exe('grep "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):Do().status then | ||
764 | print('Reference package is out of date - ' .. s) | ||
765 | end | ||
766 | end | ||
757 | else | 767 | else |
758 | C("Can't find file Packages/" .. n .. dir .. "Packages_parsed-sorted") | 768 | C("Can't find file Packages/" .. n .. dir .. "Packages_parsed-sorted") |
759 | end | 769 | end |