aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2020-07-19 20:32:49 +1000
committeronefang2020-07-19 20:32:49 +1000
commit40143650d2a0a624e54168f1679f3b3fe0b33b30 (patch)
treef844a40fd8a2d92eb9da0201bb452f2cdd8e88d1
parentQuick hack to prevent RRD bitching, fix it later, meeting coming up. (diff)
downloadapt-panopticon-40143650d2a0a624e54168f1679f3b3fe0b33b30.zip
apt-panopticon-40143650d2a0a624e54168f1679f3b3fe0b33b30.tar.gz
apt-panopticon-40143650d2a0a624e54168f1679f3b3fe0b33b30.tar.bz2
apt-panopticon-40143650d2a0a624e54168f1679f3b3fe0b33b30.tar.xz
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.
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
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)
238 IP = '--connect-to "' .. pu.host .. '::' .. PU.host .. ':"' 238 IP = '--connect-to "' .. pu.host .. '::' .. PU.host .. ':"'
239 fname = host .. "_" .. pu.host .. '_' .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".txt" 239 fname = host .. "_" .. pu.host .. '_' .. PU.host .. "_" .. PU.path:gsub("/", "_") .. ".txt"
240 end 240 end
241 os.execute('rm -f results/HEADERS_' .. fname .. ' 2>/dev/null; rm -f results/STATUS_' .. fname .. ' 2>/dev/null') 241 os.execute('rm -f results/HEADERS_' .. fname .. ' 2>/dev/null; rm -f results/STATUS_' .. fname .. ' 2>/dev/null; touch results/STATUS_' .. fname)
242 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 242 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
243 if 0 < r then 243 if 0 < r then
244 check = "Redirecting to" 244 check = "Redirecting to"