aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-aports
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-18 14:12:45 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-18 14:13:42 +0200
commite807a6800bf61d33fa5ada650ab59d109def9f42 (patch)
tree91d499324c596f267ffad8f7556c9320391e7fcc /main/lua-aports
parentc76f7cd63cacccc483efb227191d9acc54d9e052 (diff)
downloadaports-e807a6800bf61d33fa5ada650ab59d109def9f42.tar.bz2
aports-e807a6800bf61d33fa5ada650ab59d109def9f42.tar.xz
main/lua-aports: only regenerate index if something was actually built
Diffstat (limited to 'main/lua-aports')
-rw-r--r--main/lua-aports/APKBUILD12
-rw-r--r--main/lua-aports/update-index.patch13
2 files changed, 21 insertions, 4 deletions
diff --git a/main/lua-aports/APKBUILD b/main/lua-aports/APKBUILD
index 4add2e8159..14d001af4f 100644
--- a/main/lua-aports/APKBUILD
+++ b/main/lua-aports/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-aports
pkgver=0.4
-pkgrel=1
+pkgrel=2
pkgdesc="Lua modules for parsing aports tree"
url="http://dev.alpinelinux.org/archive/lua-aports/"
arch="noarch"
@@ -15,6 +15,7 @@ subpackages=""
source="http://dev.alpinelinux.org/archive/lua-aports/lua-aports-$pkgver.tar.xz
0001-buildrepo-add-support-for-plugins.d.patch
0002-buildrepo-refactor.patch
+ update-index.patch
"
_builddir="$srcdir"/lua-aports-$pkgver
@@ -39,10 +40,13 @@ package() {
md5sums="61abfaedf5d7599d1322e62029b24a3e lua-aports-0.4.tar.xz
400c3f87e3bfc0cece732ccc7273ab15 0001-buildrepo-add-support-for-plugins.d.patch
-45f3610919c1bddea841d4c91bccb3de 0002-buildrepo-refactor.patch"
+45f3610919c1bddea841d4c91bccb3de 0002-buildrepo-refactor.patch
+c5994a11f98774a5d804f6710474104e update-index.patch"
sha256sums="b29670416a476fd390083b1b013c099c727e1c4e56171cc5f7ab767dcf41aacc lua-aports-0.4.tar.xz
fbee2b352b8a353b4f904a26cc311cc60f79eaa6b1202566a6c311e4c2bb4144 0001-buildrepo-add-support-for-plugins.d.patch
-99f971b242b283beea788d3d31d48b5143c1e134ae448c2bf7303b595159c6cf 0002-buildrepo-refactor.patch"
+99f971b242b283beea788d3d31d48b5143c1e134ae448c2bf7303b595159c6cf 0002-buildrepo-refactor.patch
+c4f7701cdccff92775f5561397a521abf627d245f511abdfbf7f144111f33f3e update-index.patch"
sha512sums="06571ce33872d846c8a72d31c8b8e86ce1824f3ae39875c4fe7dfcc6f69968ebb53b4ce4cf7349a1a717be2572dcea1b79f06d90d03f9fef88cc06703b830273 lua-aports-0.4.tar.xz
0d1bb484c6281b61e1e5b8862b7f73f1f2da9d4bc77260309f8bbd6a9ffd8c733424d42c194593a7434209277284dcf0bf8bea07d6b083df371b462e131cd3c9 0001-buildrepo-add-support-for-plugins.d.patch
-0af8a5ed6b57b8d72c4ec3715c02d3d47dc9bf7a88da665b15e2f7cabbe81e8d3b871acea28e85a962c1b2872e921efadb72674f71ef7a8a0ba7d9e5834bb11e 0002-buildrepo-refactor.patch"
+0af8a5ed6b57b8d72c4ec3715c02d3d47dc9bf7a88da665b15e2f7cabbe81e8d3b871acea28e85a962c1b2872e921efadb72674f71ef7a8a0ba7d9e5834bb11e 0002-buildrepo-refactor.patch
+f8e9c0e50853bf144ac345bab8fdf12ea669162b8555202d3ca63ad6520bb5360bb40f74f65ea3750abec49290d4e54f125bc88df057a99aef749c5cdd32bc79 update-index.patch"
diff --git a/main/lua-aports/update-index.patch b/main/lua-aports/update-index.patch
new file mode 100644
index 0000000000..40764fdfa8
--- /dev/null
+++ b/main/lua-aports/update-index.patch
@@ -0,0 +1,13 @@
+diff --git a/buildrepo.lua b/buildrepo.lua
+index bc0a784..498d6c3 100755
+--- a/buildrepo.lua
++++ b/buildrepo.lua
+@@ -227,7 +227,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())