aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mirror-checker.lua
diff options
context:
space:
mode:
authoronefang2019-09-07 01:33:15 +1000
committeronefang2019-09-07 01:33:15 +1000
commit5a13a0782ad2575702e8046b0be7ca9a0d398227 (patch)
tree92cb9f8ff6210a91af6c269064fb2814847e939b /mirror-checker.lua
parentSave and load the mirror list between threads. (diff)
downloadapt-panopticon-5a13a0782ad2575702e8046b0be7ca9a0d398227.zip
apt-panopticon-5a13a0782ad2575702e8046b0be7ca9a0d398227.tar.gz
apt-panopticon-5a13a0782ad2575702e8046b0be7ca9a0d398227.tar.bz2
apt-panopticon-5a13a0782ad2575702e8046b0be7ca9a0d398227.tar.xz
Split the checked packages to Debain and Devuan based ones.
Diffstat (limited to '')
-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