pkgfs now stores absolute paths to archive files, oops
This commit is contained in:
parent
0f1b324cc4
commit
ffc6c8915a
@ -99,7 +99,10 @@ function pkgfs.component.close(handle)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function pkgfs.add(fname,comp)
|
function pkgfs.add(fname,comp)
|
||||||
|
local fname = "/"..fnormalize(os.getenv("PWD").."/"..fname)
|
||||||
local f = fopen(fname,comp)
|
local f = fopen(fname,comp)
|
||||||
|
if not fname then error("unable to open file") end
|
||||||
|
print(fname)
|
||||||
for name, read, fsize in mtar.iter(f) do
|
for name, read, fsize in mtar.iter(f) do
|
||||||
findex[fnormalize(name)] = {fname,comp}
|
findex[fnormalize(name)] = {fname,comp}
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user