diff options
author | onefang | 2019-12-14 08:03:50 +1000 |
---|---|---|
committer | onefang | 2019-12-14 08:03:50 +1000 |
commit | 654be8fc08f31f9d1db78e51f86737254718e3b7 (patch) | |
tree | 5b251934e2dbe73f51edab99e490fa9b0f5ba736 | |
parent | Validate the mirrors_list FQDN and BaseURL. (diff) | |
download | apt-panopticon-654be8fc08f31f9d1db78e51f86737254718e3b7.zip apt-panopticon-654be8fc08f31f9d1db78e51f86737254718e3b7.tar.gz apt-panopticon-654be8fc08f31f9d1db78e51f86737254718e3b7.tar.bz2 apt-panopticon-654be8fc08f31f9d1db78e51f86737254718e3b7.tar.xz |
Clean up some commented out code from a previous refactor.
-rwxr-xr-x | apt-panopticon-report-email-web.lua | 1 | ||||
-rwxr-xr-x | apt-panopticon.lua | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/apt-panopticon-report-email-web.lua b/apt-panopticon-report-email-web.lua index 94f0417..8a5404a 100755 --- a/apt-panopticon-report-email-web.lua +++ b/apt-panopticon-report-email-web.lua | |||
@@ -49,7 +49,6 @@ local status = function(host, results, typ) | |||
49 | local w = 0 | 49 | local w = 0 |
50 | local s = nil ~= APT.mirrors[host].Protocols[typ] | 50 | local s = nil ~= APT.mirrors[host].Protocols[typ] |
51 | local to = results.timeout | 51 | local to = results.timeout |
52 | -- if ('http' ~= typ) and ('https' ~= typ) and ('ftp' ~= typ) and ('rsync' ~= typ) then s = true end | ||
53 | if not APT.search(APT.protocols, typ) then s = true end | 52 | if not APT.search(APT.protocols, typ) then s = true end |
54 | if nil ~= results[typ] then | 53 | if nil ~= results[typ] then |
55 | e = results[typ].errors | 54 | e = results[typ].errors |
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 502ed6a..6bec6a1 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -626,7 +626,6 @@ local getMirrors = function () | |||
626 | elseif "Protocols" == t then | 626 | elseif "Protocols" == t then |
627 | local prot = {} | 627 | local prot = {} |
628 | for w in d:gmatch("(%w+)") do | 628 | for w in d:gmatch("(%w+)") do |
629 | -- prot[w] = true; | ||
630 | if APT.search(APT.protocols, w:lower()) then prot[w] = true end | 629 | if APT.search(APT.protocols, w:lower()) then prot[w] = true end |
631 | end | 630 | end |
632 | m[t] = prot | 631 | m[t] = prot |