diff options
author | onefang | 2019-12-13 03:16:12 +1000 |
---|---|---|
committer | onefang | 2019-12-13 03:16:12 +1000 |
commit | 018259f210c2e8addd76dd24969803a3529a553d (patch) | |
tree | 8c8244c39e65955b3ad56e9935d05374be9dbd22 /apt-panopticon.lua | |
parent | Comment++ (diff) | |
download | apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.zip apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.tar.gz apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.tar.bz2 apt-panopticon-018259f210c2e8addd76dd24969803a3529a553d.tar.xz |
Refactor the protocols table.
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 62acbf25..8b02626 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -606,7 +606,8 @@ local getMirrors = function () | |||
606 | elseif "Protocols" == t then | 606 | elseif "Protocols" == t then |
607 | local prot = {} | 607 | local prot = {} |
608 | for w in d:gmatch("(%w+)") do | 608 | for w in d:gmatch("(%w+)") do |
609 | prot[w] = true; | 609 | -- prot[w] = true; |
610 | if APT.search(APT.protocols, w:lower()) then prot[w] = true end | ||
610 | end | 611 | end |
611 | m[t] = prot | 612 | m[t] = prot |
612 | elseif "Active" == t and nil == d:sub(1, 3):find("yes", 1, true) then | 613 | elseif "Active" == t and nil == d:sub(1, 3):find("yes", 1, true) then |