aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 5658d48..5d6cb70 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -36,7 +36,7 @@ local notExist =
36local referenceDebs = 36local referenceDebs =
37{ 37{
38 -- Debian package. 38 -- Debian package.
39 "merged/pool/DEBIAN/main/d/debian-keyring/debian-keyring_2024.03.24_all.deb", 39 "merged/pool/DEBIAN/main/d/debian-keyring/debian-keyring_2024.06.24_all.deb",
40 -- Debian security package. NOTE this one should always be redirected? 40 -- Debian security package. NOTE this one should always be redirected?
41 "merged/pool/DEBIAN-SECURITY/updates/main/a/apt/apt-transport-https_1.8.2.2_all.deb", 41 "merged/pool/DEBIAN-SECURITY/updates/main/a/apt/apt-transport-https_1.8.2.2_all.deb",
42} 42}
@@ -44,7 +44,8 @@ local referenceDevs =
44{ 44{
45 -- Devuan package. NOTE this one should not get redirected, but that's more a warning than an error. 45 -- Devuan package. NOTE this one should not get redirected, but that's more a warning than an error.
46 "merged/pool/DEVUAN/main/d/devuan-keyring/devuan-keyring_2023.10.07_all.deb", -- Devuan keeps changing this since the key expiry incident. 46 "merged/pool/DEVUAN/main/d/devuan-keyring/devuan-keyring_2023.10.07_all.deb", -- Devuan keeps changing this since the key expiry incident.
47 "merged/pool/DEVUAN/main/b/base-files/base-files_13.2devuan1_all.deb", 47 -- Hmmm used to be _all, but it was split to the individual archs. Seems pointless, each one is the same size as the previous all.
48 "merged/pool/DEVUAN/main/b/base-files/base-files_13.5devuan1_amd64.deb",
48} 49}
49 50
50local keyring = "/usr/share/keyrings/devuan-archive-keyring.gpg" 51local keyring = "/usr/share/keyrings/devuan-archive-keyring.gpg"
@@ -307,6 +308,10 @@ checkHEAD = function (host, URL, r, retry, sanity)
307 if "https" == PU.scheme and APT.options.roundRobin.value == host then 308 if "https" == PU.scheme and APT.options.roundRobin.value == host then
308 I(spcd .. "Not testing " .. APT.lnk(URL) .. " mirrors wont have the correct HTTPS certificate for the round robin.", host) 309 I(spcd .. "Not testing " .. APT.lnk(URL) .. " mirrors wont have the correct HTTPS certificate for the round robin.", host)
309 return 310 return
311-- TODO - For some odd reason, sometimes one of these is nil. Dig deeper to figure out why.
312 elseif "https" == PU.scheme and (APT.mirrors[host] ~= nil) and (APT.mirrors[host].Protocols ~= nil) and (not APT.mirrors[host].Protocols.https) then
313 I(spcd .. "Not testing " .. APT.lnk(URL) .. " host doesn't support HTTPS.", host)
314 return
310 else 315 else
311 I(spcd .. check .. " " .. APT.lnk(URL), host) 316 I(spcd .. check .. " " .. APT.lnk(URL), host)
312 end 317 end