aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
authoronefang2019-12-31 16:20:14 +1000
committeronefang2019-12-31 16:20:14 +1000
commit91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7 (patch)
treecdbbf301d0f20228de66cad65e218386c67317a0 /apt-panopticon.lua
parentCheck if reference packages are still current. (diff)
downloadapt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.zip
apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.tar.gz
apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.tar.bz2
apt-panopticon-91b6eba0f7c4fd44dd79f0e868bb9e7a92bccce7.tar.xz
Add Redirects tests fully.
Diffstat (limited to 'apt-panopticon.lua')
-rwxr-xr-xapt-panopticon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 43eeccf..2237232 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -345,7 +345,7 @@ checkHEAD = function (host, URL, r, retry, sanity)
345 if nil ~= location then 345 if nil ~= location then
346 pu = url.parse(location, defaultURL) 346 pu = url.parse(location, defaultURL)
347 if (pu.host == APT.options.roundRobin.value) and (nil ~= PU.path:find('merged/pool/DEVUAN/')) then 347 if (pu.host == APT.options.roundRobin.value) and (nil ~= PU.path:find('merged/pool/DEVUAN/')) then
348 E('DEVUAN packages must not be redirected to ' .. APT.options.roundRobin.value .. ' - ' .. APT.lnk(URL) .. arw .. APT.lnk(location), PU.scheme, sanity, host) 348 E('DEVUAN packages must not be redirected to ' .. APT.options.roundRobin.value .. ' - ' .. APT.lnk(URL) .. arw .. APT.lnk(location), PU.scheme, 'Redirects', host)
349 end 349 end
350 if ('http' == location:sub(1, 4)) and (pu.scheme ~= PU.scheme) then -- Sometimes a location sans scheme is returned, this is not a protocol change. 350 if ('http' == location:sub(1, 4)) and (pu.scheme ~= PU.scheme) then -- Sometimes a location sans scheme is returned, this is not a protocol change.
351 if APT.testing("Protocol") then 351 if APT.testing("Protocol") then
@@ -393,7 +393,7 @@ checkHEAD = function (host, URL, r, retry, sanity)
393 end 393 end
394 end 394 end
395 elseif nil ~= PU.path:find('merged/pool/DEBIAN-SECURITY/') then 395 elseif nil ~= PU.path:find('merged/pool/DEBIAN-SECURITY/') then
396 W('DEBIAN-SECURITY packages must be redirected to a Debian mirror - ' .. APT.lnk(URL) .. arw .. APT.lnk(location), PU.scheme, sanity, host) 396 W('DEBIAN-SECURITY packages must be redirected to a Debian mirror - ' .. APT.lnk(URL) .. arw .. APT.lnk(location), PU.scheme, 'Redirects', host)
397 end 397 end
398 end 398 end
399end 399end