diff options
author | onefang | 2019-12-03 06:25:24 +1000 |
---|---|---|
committer | onefang | 2019-12-03 06:25:24 +1000 |
commit | 35f5789a7dafd21127f030d278f7fcb1e2ce76bf (patch) | |
tree | 4c5d559196c3a2e8cb7f9b302f269dc9a1995bb4 | |
parent | Add max time for each download. (diff) | |
download | apt-panopticon-35f5789a7dafd21127f030d278f7fcb1e2ce76bf.zip apt-panopticon-35f5789a7dafd21127f030d278f7fcb1e2ce76bf.tar.gz apt-panopticon-35f5789a7dafd21127f030d278f7fcb1e2ce76bf.tar.bz2 apt-panopticon-35f5789a7dafd21127f030d278f7fcb1e2ce76bf.tar.xz |
Make unpacking nicer.
-rwxr-xr-x | apt-panopticon.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua index fd757ec..c3e0795 100755 --- a/apt-panopticon.lua +++ b/apt-panopticon.lua | |||
@@ -671,8 +671,8 @@ local postDownload = function(host, r, k) | |||
671 | " && [ ! -f results/" .. host .. "/merged/dists/" .. r .. k .. " ]; then cp -a" .. | 671 | " && [ ! -f results/" .. host .. "/merged/dists/" .. r .. k .. " ]; then cp -a" .. |
672 | " results/" .. host .. "/merged/dists/" .. r .. k .. ".old" .. | 672 | " results/" .. host .. "/merged/dists/" .. r .. k .. ".old" .. |
673 | " results/" .. host .. "/merged/dists/" .. r .. k .. "; fi") | 673 | " results/" .. host .. "/merged/dists/" .. r .. k .. "; fi") |
674 | if ".gz" == k:sub(-3, -1) then execute("gzip -dfk results/" .. host .. "/merged/dists/" .. r .. k) end | 674 | if ".gz" == k:sub(-3, -1) then execute("ionice -c3 nice -n 19 gzip -dfk results/" .. host .. "/merged/dists/" .. r .. k) end |
675 | if ".xz" == k:sub(-3, -1) then execute("xz -dfk results/" .. host .. "/merged/dists/" .. r .. k .. " 2>/dev/null") end | 675 | if ".xz" == k:sub(-3, -1) then execute("ionice -c3 nice -n 19 xz -dfk results/" .. host .. "/merged/dists/" .. r .. k .. " 2>/dev/null") end |
676 | if testing("Integrity") then | 676 | if testing("Integrity") then |
677 | if ".gpg" == k:sub(-4, -1) then | 677 | if ".gpg" == k:sub(-4, -1) then |
678 | local status, out = execute("gpgv --keyring /usr/share/keyrings/devuan-keyring.gpg results/" .. host .. "/merged/dists/" .. r .. k .. | 678 | local status, out = execute("gpgv --keyring /usr/share/keyrings/devuan-keyring.gpg results/" .. host .. "/merged/dists/" .. r .. k .. |