1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-28 01:20:27 +00:00

packages stored in compressed state - experimental (with config option)

This commit is contained in:
kepler155c@gmail.com 2020-06-03 21:11:54 -06:00
parent d678eeeaca
commit 704ef46b62
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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))