diff options
Diffstat (limited to '')
-rwxr-xr-x | mirror-checker.lua | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua index 8b80e3f..eb82a32 100755 --- a/mirror-checker.lua +++ b/mirror-checker.lua | |||
@@ -232,15 +232,16 @@ end | |||
232 | local checkPaths = function (host, ip, path) | 232 | local checkPaths = function (host, ip, path) |
233 | I(" Checking IP " .. host .. " -> " .. ip .. " " .. path) | 233 | I(" Checking IP " .. host .. " -> " .. ip .. " " .. path) |
234 | for i, s in pairs(referenceDebs) do | 234 | for i, s in pairs(referenceDebs) do |
235 | if testing("http") then checkURL(host, "http://" .. ip .. path .. s) end | 235 | if testing("http") then checkURL(host, "http://" .. ip .. path .. "/" .. s) end |
236 | if testing("https") then checkURL(host, "https://" .. ip .. path .. s) end | 236 | if testing("https") then checkURL(host, "https://" .. ip .. path .. "/" .. s) end |
237 | end | 237 | end |
238 | 238 | ||
239 | for i, s in pairs(releases) do | 239 | for i, s in pairs(releases) do |
240 | for j, k in pairs(releaseFiles) do | 240 | for j, k in pairs(releaseFiles) do |
241 | if testing("http") then checkURL(host, "http://" .. ip .. path .. "merged/dists/" .. s .. k) end | ||
242 | if testing("https") then checkURL(host, "https://" .. ip .. path .. "merged/dists/" .. s .. k) end | ||
243 | if repoExists(s .. k) then | 241 | if repoExists(s .. k) then |
242 | if testing("http") then checkURL(host, "http://" .. ip .. path .. "/merged/dists/" .. s .. k) end | ||
243 | if testing("https") then checkURL(host, "https://" .. ip .. path .. "/merged/dists/" .. s .. k) end | ||
244 | end | ||
244 | end | 245 | end |
245 | end | 246 | end |
246 | end | 247 | end |
@@ -284,11 +285,6 @@ checkIP = function (orig, host, path, ip) | |||
284 | end | 285 | end |
285 | end | 286 | end |
286 | 287 | ||
287 | local checkHost = function (host, path, ip) | ||
288 | if nil == path then path = "/" else | ||
289 | checkIP(host, host, path, ip) | ||
290 | end | ||
291 | |||
292 | local downloads = function (cut, host, URL) | 288 | local downloads = function (cut, host, URL) |
293 | if 0 ~= cut then cd = " --cut-dirs=" .. cut .. " " else cd = "" end | 289 | if 0 ~= cut then cd = " --cut-dirs=" .. cut .. " " else cd = "" end |
294 | if nil == URL then URL = "/" end | 290 | if nil == URL then URL = "/" end |