diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-25 09:24:44 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-25 09:25:37 +0200 |
commit | 12efc4c795640c6293f755d3d1d301aa422f546c (patch) | |
tree | db3784cf4dc533d942340dd13f2e1ab882f62575 /buildrepo.lua | |
parent | 3d8e17d06008c3e3b2b104787f6a32397c0f628e (diff) | |
download | lua-aports-12efc4c795640c6293f755d3d1d301aa422f546c.tar.bz2 lua-aports-12efc4c795640c6293f755d3d1d301aa422f546c.tar.xz |
buildrepo: only generate index if something was built
Diffstat (limited to 'buildrepo.lua')
-rwxr-xr-x | buildrepo.lua | 2 |
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()) |