diff options
-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 47d6bb0..b140831 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -486,6 +486,7 @@ local addDownload = function(host, URL, f, r, k) | |||
486 | -- f:write('header "If-Modified-Since: ' .. ts:sub(2, -2) .. '"\n') | 486 | -- f:write('header "If-Modified-Since: ' .. ts:sub(2, -2) .. '"\n') |
487 | -- Curl will DELETE the existing file if the timestamp fails to download a new one, unless we change directory first, | 487 | -- Curl will DELETE the existing file if the timestamp fails to download a new one, unless we change directory first, |
488 | -- which wont work with multiple files in multiple directories. WTF? | 488 | -- which wont work with multiple files in multiple directories. WTF? |
489 | --TODO - change tactic, do a HEAD if-modified test first before adding the file to the list to download. | ||
489 | os.execute(" mv results/" .. host .. "/merged/dists/" .. r .. '/' .. k .. | 490 | os.execute(" mv results/" .. host .. "/merged/dists/" .. r .. '/' .. k .. |
490 | " results/" .. host .. "/merged/dists/" .. r .. '/' .. k .. ".old") | 491 | " results/" .. host .. "/merged/dists/" .. r .. '/' .. k .. ".old") |
491 | end | 492 | end |