Browse Source

add support for system packages so one can uninstall them

master
Izaya 3 years ago
parent
commit
bfdcfbd040
  1. 6
      makepkg.lua

6
makepkg.lua

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

Loading…
Cancel
Save