From 978707fc3bddc872ed98d760396c9945e269e0e5 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 30 Dec 2019 17:03:54 +1000 Subject: TODO++ --- apt-panopticon.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/apt-panopticon.lua b/apt-panopticon.lua index 47d6bb0..b140831 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua @@ -486,6 +486,7 @@ local addDownload = function(host, URL, f, r, k) -- f:write('header "If-Modified-Since: ' .. ts:sub(2, -2) .. '"\n') -- Curl will DELETE the existing file if the timestamp fails to download a new one, unless we change directory first, -- which wont work with multiple files in multiple directories. WTF? +--TODO - change tactic, do a HEAD if-modified test first before adding the file to the list to download. os.execute(" mv results/" .. host .. "/merged/dists/" .. r .. '/' .. k .. " results/" .. host .. "/merged/dists/" .. r .. '/' .. k .. ".old") end -- cgit v1.1