aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-aports
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-04-01 14:17:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-01 14:17:21 +0000
commitd6cb963cb6494dc0e3b9563e3d68d26ef909dc73 (patch)
treeeab73d15ac98c47d3cb518e7f4bdaf1f753e715f /main/lua-aports
parent802cb456e76483e2c14242ad0d2ce96713abd007 (diff)
downloadaports-d6cb963cb6494dc0e3b9563e3d68d26ef909dc73.tar.bz2
aports-d6cb963cb6494dc0e3b9563e3d68d26ef909dc73.tar.xz
main/lua-aports: reduce mqtt messages
avoid display message for things that is skipped
Diffstat (limited to 'main/lua-aports')
-rw-r--r--main/lua-aports/0001-buildrepo-update-buildstats-only-when-something-is-a.patch44
-rw-r--r--main/lua-aports/APKBUILD12
2 files changed, 52 insertions, 4 deletions
diff --git a/main/lua-aports/0001-buildrepo-update-buildstats-only-when-something-is-a.patch b/main/lua-aports/0001-buildrepo-update-buildstats-only-when-something-is-a.patch
new file mode 100644
index 0000000000..19692ae71e
--- /dev/null
+++ b/main/lua-aports/0001-buildrepo-update-buildstats-only-when-something-is-a.patch
@@ -0,0 +1,44 @@
+From b80a71e8d8dd43dc23a84f93cb6ccab523f1f942 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 1 Apr 2014 14:15:51 +0000
+Subject: [PATCH] buildrepo: update buildstats only when something is actually
+ getting built
+
+---
+ buildrepo.lua | 17 ++++++++++-------
+ 1 file changed, 10 insertions(+), 7 deletions(-)
+
+diff --git a/buildrepo.lua b/buildrepo.lua
+index 21b444b..9a0d019 100755
+--- a/buildrepo.lua
++++ b/buildrepo.lua
+@@ -179,16 +179,19 @@ for _,repo in pairs(args) do
+ for aport in db:each_in_build_order(pkgs) do
+ tried = tried + 1
+ local totally_built = stats[repo].relevant_aports - #pkgs + built
+- io.write(("%d/%d %d/%d %s %s\n"):format(tried, #pkgs,
+- totally_built, stats[repo].relevant_aports,
+- aport.pkgname, aport.pkgver))
+ if not db:known_deps_exists(aport) then
+ warn("%s: Skipped due to missing dependencies", aport.pkgname)
+- elseif build_aport(aport, repodest, logdir, opts.s) then
+- built = built + 1
+ else
+- if not opts.k then
+- os.exit(1)
++ io.write(("%d/%d %d/%d %s %s\n"):format(tried, #pkgs,
++ totally_built,
++ stats[repo].relevant_aports,
++ aport.pkgname, aport.pkgver))
++ if build_aport(aport, repodest, logdir, opts.s) then
++ built = built + 1
++ else
++ if not opts.k then
++ os.exit(1)
++ end
+ end
+ end
+ end
+--
+1.9.1
+
diff --git a/main/lua-aports/APKBUILD b/main/lua-aports/APKBUILD
index 82ec212de9..05848eded1 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.2
-pkgrel=0
+pkgrel=1
pkgdesc="Lua modules for parsing aports tree"
url="http://dev.alpinelinux.org/archive/lua-aports/"
arch="noarch"
@@ -13,6 +13,7 @@ install=""
replaces="abuild"
subpackages=""
source="http://dev.alpinelinux.org/archive/lua-aports/lua-aports-$pkgver.tar.xz
+ 0001-buildrepo-update-buildstats-only-when-something-is-a.patch
"
_builddir="$srcdir"/lua-aports-$pkgver
@@ -35,6 +36,9 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
-md5sums="ec2caf078bc59fd90a65ffb3dd31a495 lua-aports-0.2.tar.xz"
-sha256sums="2a1c6e4cbf1176bb7094312b646c7d1dfe9778aa2478f2251e5a705f1fd55907 lua-aports-0.2.tar.xz"
-sha512sums="f96c341bfb659f8667695fea18e4170c51d41ffad95d7caa18c5284577fa8c97aa587ccff03ab66105a88c0cb9b1597e080d0b2234bc9c122a2d70b76a0de4a7 lua-aports-0.2.tar.xz"
+md5sums="ec2caf078bc59fd90a65ffb3dd31a495 lua-aports-0.2.tar.xz
+61213713ddab38a4449095bc0cb86ef5 0001-buildrepo-update-buildstats-only-when-something-is-a.patch"
+sha256sums="2a1c6e4cbf1176bb7094312b646c7d1dfe9778aa2478f2251e5a705f1fd55907 lua-aports-0.2.tar.xz
+968257f69b8373daa8637ebe09c75069680c4c2fa3658e20d38e0f13aee4c384 0001-buildrepo-update-buildstats-only-when-something-is-a.patch"
+sha512sums="f96c341bfb659f8667695fea18e4170c51d41ffad95d7caa18c5284577fa8c97aa587ccff03ab66105a88c0cb9b1597e080d0b2234bc9c122a2d70b76a0de4a7 lua-aports-0.2.tar.xz
+bab7e36d18c52631bb62de420fb53243fe7460e0400f491fb19aa94cfdfd10ac5b57fecec4a237861a988722a6290bd3b9c0c978235838871c0ff1e06e5f07a6 0001-buildrepo-update-buildstats-only-when-something-is-a.patch"