aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-23 13:04:07 +1000
committeronefang2019-12-23 13:04:07 +1000
commit44da34c9d10707e40edd0960ff0466b95097b848 (patch)
tree3fd5149eb79c65599d3b99692e34cb6a334444fb
parentRearrange sanity checks, and do unsupported checks anyway. (diff)
downloadapt-panopticon-44da34c9d10707e40edd0960ff0466b95097b848.zip
apt-panopticon-44da34c9d10707e40edd0960ff0466b95097b848.tar.gz
apt-panopticon-44da34c9d10707e40edd0960ff0466b95097b848.tar.bz2
apt-panopticon-44da34c9d10707e40edd0960ff0466b95097b848.tar.xz
Clean up the clean up of STATUS files.
-rwxr-xr-xapt-panopticon.lua6
1 files 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)
317 end 317 end
318 end 318 end
319 end 319 end
320 os.execute('rm -f results/"STATUS_' .. fname .. '" 2>/dev/null') 320 os.execute('rm -f results/STATUS_' .. fname .. ' 2>/dev/null')
321 if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then 321 if ("4" == tostring(code):sub(1, 1)) or ("5" == tostring(code):sub(1, 1)) then
322 if sanity then 322 if sanity then
323 E(" " .. code .. " " .. cstr .. ". " .. check .. " " .. host .. " -> " .. URL, PU.scheme, "URLSanity", host) 323 E(" " .. code .. " " .. cstr .. ". " .. check .. " " .. host .. " -> " .. URL, PU.scheme, "URLSanity", host)
@@ -965,7 +965,7 @@ if 0 < #arg then
965 while 0 < APT.checkExes(downloadLock .. "Packages-" .. pu.host .. ".log") do os.execute("sleep 10") end 965 while 0 < APT.checkExes(downloadLock .. "Packages-" .. pu.host .. ".log") do os.execute("sleep 10") end
966 os.execute("sleep 5") 966 os.execute("sleep 5")
967 if not APT.keep then os.execute("rm -fr results/" .. pu.host .. " 2>/dev/null") end 967 if not APT.keep then os.execute("rm -fr results/" .. pu.host .. " 2>/dev/null") end
968 os.execute('rm STATUS_' .. pu.host .. '_* 2>/dev/null') 968 os.execute('rm results/STATUS_' .. pu.host .. '_* 2>/dev/null')
969 end 969 end
970 970
971 APT.logPost() 971 APT.logPost()
@@ -1005,7 +1005,7 @@ else
1005 end 1005 end
1006 1006
1007 while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 10") end 1007 while 1 <= APT.checkExes("apt-panopticon.lua " .. sendArgs) do os.execute("sleep 10") end
1008 os.execute('rm -f results/*.check; rm STATUS_* 2>/dev/null') 1008
1009 for k, v in pairs(APT.mirrors) do 1009 for k, v in pairs(APT.mirrors) do
1010 local f = 'results/' .. k .. '.lua' 1010 local f = 'results/' .. k .. '.lua'
1011 if APT.checkFile(f) then 1011 if APT.checkFile(f) then