From 44da34c9d10707e40edd0960ff0466b95097b848 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 23 Dec 2019 13:04:07 +1000 Subject: Clean up the clean up of STATUS files. --- apt-panopticon.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index f258906..1675e73 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -317,7 +317,7 @@ checkHEAD = function (host, URL, r, retry, sanity) end end end - os.execute('rm -f results/"STATUS_' .. fname .. '" 2>/dev/null') + os.execute('rm -f results/STATUS_' .. fname .. ' 2>/dev/null') if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then if sanity then E(" " .. code .. " " .. cstr .. ". " .. check .. " " .. host .. " -> " .. URL, PU.scheme, "URLSanity", host) @@ -965,7 +965,7 @@ if 0 < #arg then while 0 < APT.checkExes(downloadLock .. "Packages-" .. pu.host .. ".log") do os.execute("sleep 10") end os.execute("sleep 5") if not APT.keep then os.execute("rm -fr results/" .. pu.host .. " 2>/dev/null") end - os.execute('rm STATUS_' .. pu.host .. '_* 2>/dev/null') + os.execute('rm results/STATUS_' .. pu.host .. '_* 2>/dev/null') end APT.logPost() @@ -1005,7 +1005,7 @@ else end while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 10") end - os.execute('rm -f results/*.check; rm STATUS_* 2>/dev/null') + for k, v in pairs(APT.mirrors) do local f = 'results/' .. k .. '.lua' if APT.checkFile(f) then -- cgit v1.1