summaryrefslogtreecommitdiffstats
path: root/buildrepo.lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-25 09:24:44 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-25 09:25:37 +0200
commit12efc4c795640c6293f755d3d1d301aa422f546c (patch)
treedb3784cf4dc533d942340dd13f2e1ab882f62575 /buildrepo.lua
parent3d8e17d06008c3e3b2b104787f6a32397c0f628e (diff)
downloadlua-aports-12efc4c795640c6293f755d3d1d301aa422f546c.tar.bz2
lua-aports-12efc4c795640c6293f755d3d1d301aa422f546c.tar.xz
buildrepo: only generate index if something was built
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 49cff33..311cc88 100755
--- a/buildrepo.lua
+++ b/buildrepo.lua
@@ -228,7 +228,7 @@ for _,repo in pairs(args) do
end
-- generate new apkindex
- if not opts.n then
+ if not opts.n and built > 0 then
info("Updating apk index")
apkrepo.update_index(("%s/%s"):format(repodest, repo),
abuild.arch, db:git_describe())