diff options
-rwxr-xr-x | apt-panopticon.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
334 | location = line:sub(11, -2) | 334 | location = line:sub(11, -2) |
335 | end | 335 | end |
336 | end | 336 | end |
337 | if '???' == code then | ||
338 | W(spcd .. spcd .. 'Could not find response code. ' .. APT.lnk(URL), PU.scheme, sanity, host) | ||
339 | else | ||
340 | os.execute('rm -f results/STATUS_' .. fname .. ' 2>/dev/null') | ||
341 | end | ||
337 | end | 342 | end |
338 | if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then | 343 | if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then |
339 | E(spcd .. spcd .. code .. " " .. cstr .. ". " .. check .. " " .. APT.lnk(URL), PU.scheme, sanity, host) | 344 | E(spcd .. spcd .. code .. " " .. cstr .. ". " .. check .. " " .. APT.lnk(URL), PU.scheme, sanity, host) |