From bfdcfbd0407ce803b24cf66f52cc4f932de1edfa Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sun, 7 Jun 2020 10:35:48 +1000 Subject: [PATCH] add support for system packages so one can uninstall them --- makepkg.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makepkg.lua b/makepkg.lua index d5221fa..07443a9 100644 --- a/makepkg.lua +++ b/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")