From feddf846b350a040b16b573add315fa5b2d6b126 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 12 Dec 2019 17:22:09 +1000 Subject: TODO++ --- apt-panopticon.lua | 1 + 1 file changed, 1 insertion(+) 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) This is what I came up with for checking if we are already testing a specific URL. Still duplicates a tiny bit, but much less than the previous find based method. +TODO - maybe we can switch to using flock like we do with the other curl calls? ]] local file = pu.host .. "://" .. pu.path 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") -- cgit v1.1