diff options
author | onefang | 2020-01-01 14:34:38 +1000 |
---|---|---|
committer | onefang | 2020-01-01 14:34:38 +1000 |
commit | 28203cba8ef7f3cef3937dbdc32b7009e8d046f8 (patch) | |
tree | b285a5966f37ad4c304ebb7795d5dfe211ad2569 | |
parent | Silly typo be gone. (diff) | |
download | apt-panopticon-28203cba8ef7f3cef3937dbdc32b7009e8d046f8.zip apt-panopticon-28203cba8ef7f3cef3937dbdc32b7009e8d046f8.tar.gz apt-panopticon-28203cba8ef7f3cef3937dbdc32b7009e8d046f8.tar.bz2 apt-panopticon-28203cba8ef7f3cef3937dbdc32b7009e8d046f8.tar.xz |
Fix the out of date reference package detection.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 70a9b83..7604a98 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -755,13 +755,13 @@ local parsePackages = function(host) | |||
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 | 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 | 758 | if 0 == APT.exe('grep -q "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):log():Do().status then |
759 | print('Reference package is out of date - ' .. s) | 759 | print('Reference package is out of date (' .. n .. ') - ' .. s) |
760 | end | 760 | end |
761 | end | 761 | end |
762 | for i, s in pairs(referenceDevs) do | 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 | 763 | if 0 == APT.exe('grep -q "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):log():Do().status then |
764 | print('Reference package is out of date - ' .. s) | 764 | print('Reference package is out of date (' .. n .. ') - ' .. s) |
765 | end | 765 | end |
766 | end | 766 | end |
767 | else | 767 | else |