add support for system packages so one can uninstall them

This commit is contained in:
Izaya 2020-06-07 10:35:48 +10:00
parent 104e59e6be
commit bfdcfbd040
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,12 @@ if lzss then
end
pkginfo.filename = fnormalize(outpath:sub(tArgs[2]:len()+1))
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 f = io.open(tArgs[2].."/packages.cfg","rb")