diff options
author | onefang | 2019-12-31 00:22:28 +1000 |
---|---|---|
committer | onefang | 2019-12-31 00:22:28 +1000 |
commit | abad73ffc631e7eed6f1fbd4a8f672fa05333578 (patch) | |
tree | 1b4b3974c7a466bfbf02b8358ff25975b2a55df5 | |
parent | Rearrange the status and STATUS checks in HEAD tests. (diff) | |
download | apt-panopticon-abad73ffc631e7eed6f1fbd4a8f672fa05333578.zip apt-panopticon-abad73ffc631e7eed6f1fbd4a8f672fa05333578.tar.gz apt-panopticon-abad73ffc631e7eed6f1fbd4a8f672fa05333578.tar.bz2 apt-panopticon-abad73ffc631e7eed6f1fbd4a8f672fa05333578.tar.xz |
Complain about not finding a status code.
-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) |