aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/apt-panopticon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'apt-panopticon.lua')
-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")