From 922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 26 Aug 2016 21:29:43 +0000 Subject: [PATCH] buildrepo: regenerate index if packages been deleted http://lists.alpinelinux.org/alpine-devel/5444.html --- buildrepo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.9.3