From 40143650d2a0a624e54168f1679f3b3fe0b33b30 Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 Jul 2020 20:32:49 +1000 Subject: 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. --- apt-panopticon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index b91d47c..f166819 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -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" -- cgit v1.1