aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-09-30 01:33:02 +1000
committeronefang2019-09-30 01:33:02 +1000
commitc9a48ee9a343f8badca81a39beae487a84127dfe (patch)
tree6b5cabfe3596bd791cfa1b12d79522396864dc4f
parentRejig the redirects a little. (diff)
downloadapt-panopticon-c9a48ee9a343f8badca81a39beae487a84127dfe.zip
apt-panopticon-c9a48ee9a343f8badca81a39beae487a84127dfe.tar.gz
apt-panopticon-c9a48ee9a343f8badca81a39beae487a84127dfe.tar.bz2
apt-panopticon-c9a48ee9a343f8badca81a39beae487a84127dfe.tar.xz
Remove some left overs.
Diffstat (limited to '')
-rwxr-xr-xmirror-checker.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index 34d1023..8634e3a 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -495,7 +495,6 @@ if 0 < #arg then
495 if nil == logFile then C("opening log file - " .. e); return end 495 if nil == logFile then C("opening log file - " .. e); return end
496 I("Starting tests for " ..arg[1] .. " with these tests - " .. table.concat(options.tests.value, ", ")) 496 I("Starting tests for " ..arg[1] .. " with these tests - " .. table.concat(options.tests.value, ", "))
497 mirrors = loadfile("results/mirrors.lua")() 497 mirrors = loadfile("results/mirrors.lua")()
498--print(dumpTable(mirrors, "", "mirrors"))
499 if nil ~= arg[2] then I(" Using IP " .. arg[2]) end 498 if nil ~= arg[2] then I(" Using IP " .. arg[2]) end
500 if nil ~= arg[3] then I(" Using file " .. arg[3]); end 499 if nil ~= arg[3] then I(" Using file " .. arg[3]); end
501 if testing("Integrity") or testing("Updated") then 500 if testing("Integrity") or testing("Updated") then
@@ -521,12 +520,9 @@ else
521 I("Starting tests " .. table.concat(options.tests.value, ", ")) 520 I("Starting tests " .. table.concat(options.tests.value, ", "))
522 execute("mkdir -p results") 521 execute("mkdir -p results")
523 mirrors = getMirrors() 522 mirrors = getMirrors()
524--print(dumpTable(mirrors, "", "mirrors"))
525 mirrors[options.referenceSite.value] = nil 523 mirrors[options.referenceSite.value] = nil
526 checkHost(options.referenceSite.value) 524 checkHost(options.referenceSite.value)
527-- forkIP(options.referenceSite.value)
528 checkHost("deb.devuan.org") 525 checkHost("deb.devuan.org")
529-- forkIP("deb.devuan.org")
530 for k, m in pairs(mirrors) do 526 for k, m in pairs(mirrors) do
531 if "/" == m.BaseURL:sub(-1, -1) then 527 if "/" == m.BaseURL:sub(-1, -1) then
532 W("slash at end of BaseURL in mirror_list.txt! " .. m.BaseURL) 528 W("slash at end of BaseURL in mirror_list.txt! " .. m.BaseURL)
@@ -534,7 +530,6 @@ else
534 end 530 end
535 local pu = url.parse("http://" .. m.BaseURL) 531 local pu = url.parse("http://" .. m.BaseURL)
536 checkHost(m.BaseURL) 532 checkHost(m.BaseURL)
537-- forkIP(m.BaseURL)
538 checkExes("mirror-checker.lua " .. sendArgs) 533 checkExes("mirror-checker.lua " .. sendArgs)
539 if testing("Integrity") or testing("Updated") then checkExes(downloadLock) end 534 if testing("Integrity") or testing("Updated") then checkExes(downloadLock) end
540 end 535 end