mirror of https://github.com/kepler155c/opus
Fix untar
small fix - untar_stream is supposed to be getting the handle, not the filename
This commit is contained in:
parent
48f32946ec
commit
1a2ac0a828
|
@ -181,7 +181,7 @@ local function untar(filename, destdir, verbose)
|
||||||
local tar_handle = io.open(filename, "rb")
|
local tar_handle = io.open(filename, "rb")
|
||||||
if not tar_handle then return nil, "Error opening file "..filename end
|
if not tar_handle then return nil, "Error opening file "..filename end
|
||||||
|
|
||||||
local ok, err = untar_stream(filename, destdir, verbose)
|
local ok, err = untar_stream(tar_handle, destdir, verbose)
|
||||||
|
|
||||||
tar_handle:close()
|
tar_handle:close()
|
||||||
return ok, err
|
return ok, err
|
||||||
|
|
Loading…
Reference in New Issue