From beef318bc3f330bb45541e59672f349a6cb5233b Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 12 Dec 2019 13:53:47 +1000 Subject: Some refactoring of the results data handling. --- apt-panopticon.lua | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'apt-panopticon.lua') diff --git a/apt-panopticon.lua b/apt-panopticon.lua index c5b76b3..cd3b38e 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -654,17 +654,7 @@ if 0 < #arg then APT.mirrors = loadfile("results/mirrors.lua")() if nil ~= arg[2] then I(" Using IP " .. arg[2]); ip = arg[2] end if nil ~= arg[3] then I(" Using file " .. arg[3]); end - - for k, v in pairs{"ftp", "http", "https", "rsync"} do - if APT.testing(v) then - local tests = {errors = 0; warnings = 0} - if APT.testing("Integrity") then tests.Integrity = {errors = 0; warnings = 0} end - if APT.testing("Protocol") then tests.Protocol = {errors = 0; warnings = 0} end - if APT.testing("Updated") then tests.Updated = {errors = 0; warnings = 0} end - if APT.testing("URLSanity") then tests.URLSanity = {errors = 0; warnings = 0} end - APT.results[v] = tests - end - end + APT.results = APT.padResults(APT.results) if APT.origin then if APT.testing("Integrity") or APT.testing("Updated") then if APT.origin and (APT.options.roundRobin.value ~= pu.host) then -- cgit v1.1