add package filtering to instgen

This commit is contained in:
Izaya 2023-11-14 19:47:07 +10:00
parent fa612224d6
commit 78f637d8e9
1 changed files with 6 additions and 0 deletions

View File

@ -69,6 +69,12 @@ wget(src,pcfgname)
local programs = parsecfg(pcfgname)
os.execute("rm '"..pcfgname.."'")
if tArgs[3] then
for k,v in pairs(programs) do
if not filter[k] then programs[k] = nil end
end
end
local dlfiles = {}
for k,v in pairs(programs) do
for l,m in pairs(v.files or {}) do