aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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