aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-12 17:22:09 +1000
committeronefang2019-12-12 17:22:09 +1000
commitfeddf846b350a040b16b573add315fa5b2d6b126 (patch)
treef8ea86889b35f0df8d60e5e90d835edaad5e0ed9
parentCount curl full download timeouts. (diff)
downloadapt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.zip
apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.tar.gz
apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.tar.bz2
apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.tar.xz
TODO++
-rwxr-xr-xapt-panopticon.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index 77cec08..9786b8b 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -336,6 +336,7 @@ checkHEAD = function (host, URL, r, retry, sanity)
336 336
337 This is what I came up with for checking if we are already testing a specific URL. 337 This is what I came up with for checking if we are already testing a specific URL.
338 Still duplicates a tiny bit, but much less than the previous find based method. 338 Still duplicates a tiny bit, but much less than the previous find based method.
339TODO - maybe we can switch to using flock like we do with the other curl calls?
339 ]] 340 ]]
340 local file = pu.host .. "://" .. pu.path 341 local file = pu.host .. "://" .. pu.path
341 local f = io.popen(string.format('if [ ! -f results/%s.check ] ; then touch results/%s.check; echo -n "check"; fi', file:gsub("/", "_"), file:gsub("/", "_") )):read("*a") 342 local f = io.popen(string.format('if [ ! -f results/%s.check ] ; then touch results/%s.check; echo -n "check"; fi', file:gsub("/", "_"), file:gsub("/", "_") )):read("*a")