diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-26 21:29:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-26 21:29:43 +0000 |
commit | 922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d (patch) | |
tree | 162d0ea8db79e90baaa2222bee287b52ec9baf95 | |
parent | d2e111262470976b190d6f9aabed0ebf3afe2cb9 (diff) | |
download | lua-aports-922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d.tar.bz2 lua-aports-922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d.tar.xz |
buildrepo: regenerate index if packages been deleted
http://lists.alpinelinux.org/alpine-devel/5444.html
-rwxr-xr-x | buildrepo.lua | 2 |
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()) |