summaryrefslogtreecommitdiffstats
path: root/buildrepo.lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-08-26 21:29:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-08-26 21:29:43 +0000
commit922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d (patch)
tree162d0ea8db79e90baaa2222bee287b52ec9baf95 /buildrepo.lua
parentd2e111262470976b190d6f9aabed0ebf3afe2cb9 (diff)
downloadlua-aports-922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d.tar.bz2
lua-aports-922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d.tar.xz
buildrepo: regenerate index if packages been deleted
http://lists.alpinelinux.org/alpine-devel/5444.html
Diffstat (limited to 'buildrepo.lua')
-rwxr-xr-xbuildrepo.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildrepo.lua b/buildrepo.lua
index c665711..bf0f39a 100755
--- a/buildrepo.lua
+++ b/buildrepo.lua
@@ -239,7 +239,7 @@ for _,repo in pairs(args) do
end
-- generate new apkindex
- if not opts.n and built > 0 then
+ if not opts.n and (built > 0 or deleted > 0) then
info("Updating apk index")
apkrepo.update_index(("%s/%s"):format(repodest, repo),
abuild.arch, db:git_describe())