aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-30 17:03:54 +1000
committeronefang2019-12-30 17:03:54 +1000
commit978707fc3bddc872ed98d760396c9945e269e0e5 (patch)
treeb7970d9e7f6079c0afc83fb223e9028b8e0ea6d5
parentLog the sha256 check call. (diff)
downloadapt-panopticon-978707fc3bddc872ed98d760396c9945e269e0e5.zip
apt-panopticon-978707fc3bddc872ed98d760396c9945e269e0e5.tar.gz
apt-panopticon-978707fc3bddc872ed98d760396c9945e269e0e5.tar.bz2
apt-panopticon-978707fc3bddc872ed98d760396c9945e269e0e5.tar.xz
TODO++
-rwxr-xr-xapt-panopticon.lua1
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