From 5a13a0782ad2575702e8046b0be7ca9a0d398227 Mon Sep 17 00:00:00 2001 From: onefang Date: Sat, 7 Sep 2019 01:33:15 +1000 Subject: Split the checked packages to Debain and Devuan based ones. --- mirror-checker.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mirror-checker.lua') 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 = } local referenceDebs = { - -- Devuan package. NOTE this one should not get redirected, but that's more a warning than an error. - "merged/pool/DEVUAN/main/d/desktop-base/desktop-base_2.0.3_all.deb", -- Debian package. "merged/pool/DEBIAN/main/d/dash/dash_0.5.8-2.4_amd64.deb", -- Debian security package. NOTE this one should always be redirected? "merged/pool/DEBIAN-SECURITY/updates/main/a/apt/apt-transport-https_1.4.9_amd64.deb", } +local referenceDevs = +{ + -- Devuan package. NOTE this one should not get redirected, but that's more a warning than an error. + "merged/pool/DEVUAN/main/d/desktop-base/desktop-base_2.0.3_all.deb", +-- "merged/pool/DEVUAN/main/u/util-linux/util-linux_2.32.1-0.1+devuan2.1_amd64.deb", +} local arg = {} local sendArgs = "" local logFile @@ -322,6 +326,9 @@ local downloads = function (cut, host, URL) local log = " --rejected-log=results/wget-%s_REJECTS-" .. host .. ".log -a results/wget-%s-" .. host .. ".log " I("starting file download commands for " .. host .. " " .. URL) local cm = "ionice -c3 " .. downloadLock .. lock:format("debs") .. download .. log:format("debs", "debs") .. cd + for i, s in pairs(referenceDevs) do + cm = cm .. " https://" .. host .. URL .. "/" .. s + end for i, s in pairs(referenceDebs) do cm = cm .. " https://" .. host .. URL .. "/" .. s end -- cgit v1.1