aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2023-02-23 14:56:06 +1000
committeronefang2023-02-23 14:56:06 +1000
commit289b983af8021a5dc72c916177b54af6e1ea4608 (patch)
tree4171057344bceead48db0e0e83c2ef14f9bf2a4c
parentThe -v option for timeout is new, not everyone has it. (diff)
downloadapt-panopticon-289b983af8021a5dc72c916177b54af6e1ea4608.zip
apt-panopticon-289b983af8021a5dc72c916177b54af6e1ea4608.tar.gz
apt-panopticon-289b983af8021a5dc72c916177b54af6e1ea4608.tar.bz2
apt-panopticon-289b983af8021a5dc72c916177b54af6e1ea4608.tar.xz
Say which host the out of date package is from.
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 93243a4..7854928 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -828,12 +828,12 @@ local parsePackages = function(host)
828 ' | grep -E "^\\+" | grep -Ev "^\\+\\+\\+|^---" >>results/NEW_' .. list.out .. '_TMP_' .. n .. '.txt') 828 ' | grep -E "^\\+" | grep -Ev "^\\+\\+\\+|^---" >>results/NEW_' .. list.out .. '_TMP_' .. n .. '.txt')
829 for i, s in pairs(referenceDebs) do 829 for i, s in pairs(referenceDebs) do
830 if 0 == APT.exe('grep -q "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):log():Do().status then 830 if 0 == APT.exe('grep -q "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):log():Do().status then
831 print('Reference package is out of date (' .. n .. ') - ' .. s) 831 print('Reference package is out of date from ' .. host .. ' (' .. n .. ') - ' .. s)
832 end 832 end
833 end 833 end
834 for i, s in pairs(referenceDevs) do 834 for i, s in pairs(referenceDevs) do
835 if 0 == APT.exe('grep -q "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):log():Do().status then 835 if 0 == APT.exe('grep -q "' .. s:sub(8, -1) .. '" results/OLD_' .. list.out .. '_' .. n .. '.txt'):log():Do().status then
836 print('Reference package is out of date (' .. n .. ') - ' .. s) 836 print('Reference package is out of date from ' .. host .. ' (' .. n .. ') - ' .. s)
837 end 837 end
838 end 838 end
839 else 839 else