aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xmirror-checker.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/mirror-checker.lua b/mirror-checker.lua
index e2975fe..6d74e59 100755
--- a/mirror-checker.lua
+++ b/mirror-checker.lua
@@ -61,13 +61,17 @@ local notExist =
61} 61}
62local referenceDebs = 62local referenceDebs =
63{ 63{
64 -- Devuan package. NOTE this one should not get redirected, but that's more a warning than an error.
65 "merged/pool/DEVUAN/main/d/desktop-base/desktop-base_2.0.3_all.deb",
66 -- Debian package. 64 -- Debian package.
67 "merged/pool/DEBIAN/main/d/dash/dash_0.5.8-2.4_amd64.deb", 65 "merged/pool/DEBIAN/main/d/dash/dash_0.5.8-2.4_amd64.deb",
68 -- Debian security package. NOTE this one should always be redirected? 66 -- Debian security package. NOTE this one should always be redirected?
69 "merged/pool/DEBIAN-SECURITY/updates/main/a/apt/apt-transport-https_1.4.9_amd64.deb", 67 "merged/pool/DEBIAN-SECURITY/updates/main/a/apt/apt-transport-https_1.4.9_amd64.deb",
70} 68}
69local referenceDevs =
70{
71 -- Devuan package. NOTE this one should not get redirected, but that's more a warning than an error.
72 "merged/pool/DEVUAN/main/d/desktop-base/desktop-base_2.0.3_all.deb",
73-- "merged/pool/DEVUAN/main/u/util-linux/util-linux_2.32.1-0.1+devuan2.1_amd64.deb",
74}
71local arg = {} 75local arg = {}
72local sendArgs = "" 76local sendArgs = ""
73local logFile 77local logFile
@@ -322,6 +326,9 @@ local downloads = function (cut, host, URL)
322 local log = " --rejected-log=results/wget-%s_REJECTS-" .. host .. ".log -a results/wget-%s-" .. host .. ".log " 326 local log = " --rejected-log=results/wget-%s_REJECTS-" .. host .. ".log -a results/wget-%s-" .. host .. ".log "
323 I("starting file download commands for " .. host .. " " .. URL) 327 I("starting file download commands for " .. host .. " " .. URL)
324 local cm = "ionice -c3 " .. downloadLock .. lock:format("debs") .. download .. log:format("debs", "debs") .. cd 328 local cm = "ionice -c3 " .. downloadLock .. lock:format("debs") .. download .. log:format("debs", "debs") .. cd
329 for i, s in pairs(referenceDevs) do
330 cm = cm .. " https://" .. host .. URL .. "/" .. s
331 end
325 for i, s in pairs(referenceDebs) do 332 for i, s in pairs(referenceDebs) do
326 cm = cm .. " https://" .. host .. URL .. "/" .. s 333 cm = cm .. " https://" .. host .. URL .. "/" .. s
327 end 334 end