add support for system packages so one can uninstall them
This commit is contained in:
parent
104e59e6be
commit
bfdcfbd040
@ -85,6 +85,12 @@ if lzss then
|
|||||||
end
|
end
|
||||||
pkginfo.filename = fnormalize(outpath:sub(tArgs[2]:len()+1))
|
pkginfo.filename = fnormalize(outpath:sub(tArgs[2]:len()+1))
|
||||||
pkginfo.version = tArgs[3]
|
pkginfo.version = tArgs[3]
|
||||||
|
if pkginfo.system then
|
||||||
|
pkginfo.files = {}
|
||||||
|
for k,v in pairs(files) do
|
||||||
|
pkginfo.files[#pkginfo.files+1] = fnormalize(v:sub(tArgs[1]:len()+1))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local repo = {}
|
local repo = {}
|
||||||
local f = io.open(tArgs[2].."/packages.cfg","rb")
|
local f = io.open(tArgs[2].."/packages.cfg","rb")
|
||||||
|
Loading…
Reference in New Issue
Block a user