mirror of
https://github.com/kepler155c/opus
synced 2024-12-28 09:30:34 +00:00
packages stored in compressed state - experimental (with config option)
This commit is contained in:
parent
d678eeeaca
commit
704ef46b62
@ -106,7 +106,7 @@ local function install(name, isUpdate, ignoreDeps)
|
||||
|
||||
if Config.load('package').compression then
|
||||
local c = Tar.tar_string(packageDir)
|
||||
Util.writeFile(name .. '.tar.lzw', LZW.compress(c), 'wb')
|
||||
Util.writeFile(packageDir .. '.tar.lzw', LZW.compress(c), 'wb')
|
||||
fs.delete(packageDir)
|
||||
end
|
||||
end
|
||||
|
@ -214,7 +214,7 @@ local function tar_stream(tar_handle, root, files)
|
||||
local abs = fs.combine(root, rel)
|
||||
for _,f in ipairs(fs.list(abs)) do
|
||||
local fullName = fs.combine(abs, f)
|
||||
if fs.native.isDir(fullName) then -- skip virtual dirs
|
||||
if fs.isDir(fullName) then -- skip virtual dirs
|
||||
recurse(fs.combine(rel, f))
|
||||
else
|
||||
table.insert(files, fs.combine(rel, f))
|
||||
|
Loading…
Reference in New Issue
Block a user