aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticommon.lua
diff options
context:
space:
mode:
authoronefang2019-12-23 13:10:18 +1000
committeronefang2019-12-23 13:10:18 +1000
commit9de868646f4f05d81922effd32b0051da493139a (patch)
treeaab5bc586f619555c575d24f32643194956c48e3 /apt-panopticommon.lua
parentSpeed RRD is now it's own thing, not aseparate one per protocol. (diff)
downloadapt-panopticon-9de868646f4f05d81922effd32b0051da493139a.zip
apt-panopticon-9de868646f4f05d81922effd32b0051da493139a.tar.gz
apt-panopticon-9de868646f4f05d81922effd32b0051da493139a.tar.bz2
apt-panopticon-9de868646f4f05d81922effd32b0051da493139a.tar.xz
Forgotten code for the "dig in forks" changes.
Diffstat (limited to 'apt-panopticommon.lua')
-rw-r--r--apt-panopticommon.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua
index 9b62e9a..6aabfee 100644
--- a/apt-panopticommon.lua
+++ b/apt-panopticommon.lua
@@ -493,16 +493,18 @@ APT.collateAll = function(l, host, func)
493 if nil ~= func then func(results) end 493 if nil ~= func then func(results) end
494 local v = APT.mirrors[host] 494 local v = APT.mirrors[host]
495 if nil ~= v then 495 if nil ~= v then
496 local IPs = v.IPs 496 local IPs = results.IPs
497 for i, u in pairs(IPs) do 497 if nil == IPs then W('No IPs for ' .. host .. ' in ' .. l) else
498 if "table" == type(u) then 498 for i, u in pairs(IPs) do
499 for h, t in pairs(u) do 499 if "table" == type(u) then
500 results = APT.collate(l, host, h, results) 500 for h, t in pairs(u) do
501 if nil ~= func then func(results, h) end 501 results = APT.collate(l, host, h, results)
502 if nil ~= func then func(results, h) end
503 end
504 else
505 results = APT.collate(l, host, i, results)
506 if nil ~= func then func(results, i) end
502 end 507 end
503 else
504 results = APT.collate(l, host, i, results)
505 if nil ~= func then func(results, i) end
506 end 508 end
507 end 509 end
508 end 510 end