diff options
author | onefang | 2019-12-12 17:22:09 +1000 |
---|---|---|
committer | onefang | 2019-12-12 17:22:09 +1000 |
commit | feddf846b350a040b16b573add315fa5b2d6b126 (patch) | |
tree | f8ea86889b35f0df8d60e5e90d835edaad5e0ed9 | |
parent | Count curl full download timeouts. (diff) | |
download | apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.zip apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.tar.gz apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.tar.bz2 apt-panopticon-feddf846b350a040b16b573add315fa5b2d6b126.tar.xz |
TODO++
Diffstat (limited to '')
-rwxr-xr-x | apt-panopticon.lua | 1 |
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. |
339 | TODO - 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") |