mirror of
https://github.com/kepler155c/opus
synced 2025-01-15 18:05:42 +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
|
if Config.load('package').compression then
|
||||||
local c = Tar.tar_string(packageDir)
|
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)
|
fs.delete(packageDir)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -214,7 +214,7 @@ local function tar_stream(tar_handle, root, files)
|
|||||||
local abs = fs.combine(root, rel)
|
local abs = fs.combine(root, rel)
|
||||||
for _,f in ipairs(fs.list(abs)) do
|
for _,f in ipairs(fs.list(abs)) do
|
||||||
local fullName = fs.combine(abs, f)
|
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))
|
recurse(fs.combine(rel, f))
|
||||||
else
|
else
|
||||||
table.insert(files, fs.combine(rel, f))
|
table.insert(files, fs.combine(rel, f))
|
||||||
|
Loading…
Reference in New Issue
Block a user