Browse Source

Work around a problem with the STATUS files.

cat:
'results/STATUS_deb.devuan.org_deb.devuan.org_2a01:4f8:162:7293:__merged_pool_DEBIAN_main_d_debian-keyring_debian-keyring_2019.02.25_all.deb.txt':
No such file or directory

Is the error, so I touch it first, but not all of them get to the rm
later, so now we have a bunch of empty ones.  No idea, it's really
random and hard to catch.
master
onefang 9 months ago
parent
commit
40143650d2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      apt-panopticon.lua

+ 1
- 1
apt-panopticon.lua View File

@@ -238,7 +238,7 @@ checkHEAD = function (host, URL, r, retry, sanity)
IP = '--connect-to "' .. pu.host .. '::' .. PU.host .. ':"'
fname = host .. "_" .. pu.host .. '_' .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".txt"
end
os.execute('rm -f results/HEADERS_' .. fname .. ' 2>/dev/null; rm -f results/STATUS_' .. fname .. ' 2>/dev/null')
os.execute('rm -f results/HEADERS_' .. fname .. ' 2>/dev/null; rm -f results/STATUS_' .. fname .. ' 2>/dev/null; touch results/STATUS_' .. fname)
if not APT.testing(PU.scheme, host) and APT.redir then I(spcd .. string.upper(PU.scheme) .. " not supported, not tested.   " .. URL, host); return end
if 0 < r then
check = "Redirecting to"


Loading…
Cancel
Save