From abad73ffc631e7eed6f1fbd4a8f672fa05333578 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 31 Dec 2019 00:22:28 +1000 Subject: Complain about not finding a status code. --- apt-panopticon.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 093d3ff..d4bba5e 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -334,6 +334,11 @@ checkHEAD = function (host, URL, r, retry, sanity) location = line:sub(11, -2) end end + if '???' == code then + W(spcd .. spcd .. 'Could not find response code. ' .. APT.lnk(URL), PU.scheme, sanity, host) + else + os.execute('rm -f results/STATUS_' .. fname .. ' 2>/dev/null') + end end if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then E(spcd .. spcd .. code .. " " .. cstr .. ". " .. check .. " " .. APT.lnk(URL), PU.scheme, sanity, host) -- cgit v1.1