diff options
| author | onefang | 2020-02-06 14:10:33 +1000 |
|---|---|---|
| committer | onefang | 2020-02-06 14:10:33 +1000 |
| commit | 77f7f216ed266bc20e0c50de057af8c4e7c3c02f (patch) | |
| tree | 519de2bdffc89ab33dc7c32b6063d82b231062e5 | |
| parent | Downgrade inability to find Packages_parsed-sorted to a WARNING. (diff) | |
| download | apt-panopticon-77f7f216ed266bc20e0c50de057af8c4e7c3c02f.zip apt-panopticon-77f7f216ed266bc20e0c50de057af8c4e7c3c02f.tar.gz apt-panopticon-77f7f216ed266bc20e0c50de057af8c4e7c3c02f.tar.bz2 apt-panopticon-77f7f216ed266bc20e0c50de057af8c4e7c3c02f.tar.xz | |
ERROR if we can't find IPs for a mirror.
| -rwxr-xr-x | apt-panopticon.lua | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 515e14b..793a80f 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
| @@ -1051,16 +1051,20 @@ if 0 < #arg then | |||
| 1051 | if nil == path then path = '' end | 1051 | if nil == path then path = '' end |
| 1052 | if APT.origin then | 1052 | if APT.origin then |
| 1053 | local ips = APT.results["IPs"] | 1053 | local ips = APT.results["IPs"] |
| 1054 | APT.allpairs(ips, | 1054 | if nil ~= ips then |
| 1055 | function(k, v) | 1055 | APT.allpairs(ips, |
| 1056 | if v == "A" then | 1056 | function(k, v) |
| 1057 | if APT.testing("IPv4") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -4 ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end | 1057 | if v == "A" then |
| 1058 | elseif v == "AAAA" then | 1058 | if APT.testing("IPv4") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -4 ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end |
| 1059 | if APT.testing("IPv6") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -6 ' .. APT.IPv46 .. ' ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end | 1059 | elseif v == "AAAA" then |
| 1060 | if APT.testing("IPv6") then APT.exe('./apt-panopticon.lua ' .. sendArgs .. ' -6 ' .. APT.IPv46 .. ' ' .. pu.host .. path .. ' ' .. k .. ' ' .. file):Nice():log():fork() end | ||
| 1061 | end | ||
| 1062 | D('logging to ' .. APT.logName(pu.host, k, file)[2]) | ||
| 1060 | end | 1063 | end |
| 1061 | D('logging to ' .. APT.logName(pu.host, k, file)[2]) | 1064 | ) |
| 1062 | end | 1065 | else |
| 1063 | ) | 1066 | E("no IPs for " .. pu.host) |
| 1067 | end | ||
| 1064 | end | 1068 | end |
| 1065 | 1069 | ||
| 1066 | if not APT.redir then | 1070 | if not APT.redir then |
