Skip to content

Commit

Permalink
purge packages which have been disabled
Browse files Browse the repository at this point in the history
Now it only purges packages where the APKBUILD has been actually removed
from the aports repository.
  • Loading branch information
Ikke committed Apr 18, 2020
1 parent 9524ea1 commit bc9499c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/buildrepo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ for _, repo in pairs(args) do
if opts.p then
local keep = {}
for aport, name in db:each() do
keep[aport:get_apk_file_name(name)] = true
if aport:relevant() then
keep[aport:get_apk_file_name(name)] = true
end
end
local apkrepodir = ("%s/%s/%s"):format(conf.repodest, repo, abuild.arch)
for file in lfs.dir(apkrepodir) do
Expand Down

0 comments on commit bc9499c

Please sign in to comment.