blob: d3437fd636e10e0af701b5a57720d11cbcead9e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 922130c3e0359b04cfb5d7cd31ee2fb9a5aa4b8d Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
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
|