summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2020-04-18 13:49:07 +0200
committerKevin Daudt <kdaudt@alpinelinux.org>2020-04-18 13:54:07 +0200
commit9c90272b7043886d111ebc687eccec40814c58b6 (patch)
tree57a86b8be7a0fc7862acb7ed490e50eed9eb8714
parent9524ea14a0f31d5df137dab0848243b0e2c88ff1 (diff)
downloadlua-aports-github/fork/Ikke/purge-disabled-packages.tar.gz
lua-aports-github/fork/Ikke/purge-disabled-packages.tar.bz2
lua-aports-github/fork/Ikke/purge-disabled-packages.tar.xz
purge packages which have been disabledgithub/fork/Ikke/purge-disabled-packages
Currently, it only purges packages where the APKBUILD has been actually removed from the aports repository, but we expect disabled packages to be purged as well.
-rwxr-xr-xbin/buildrepo.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/buildrepo.lua b/bin/buildrepo.lua
index 0f9011b..5cdbef8 100755
--- a/bin/buildrepo.lua
+++ b/bin/buildrepo.lua
@@ -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