summaryrefslogtreecommitdiffstats
path: root/buildrepo.lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-24 12:50:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-24 12:50:49 +0000
commit9a5cf60c88c1e58bdbb8a7610efa6e3bc5c2f44e (patch)
tree672211d955b07ecaec71c8d24a7356e6f1555fa5 /buildrepo.lua
parent17d981ec3303ca276a23f442dd7de7cc5b5e1a7f (diff)
downloadlua-aports-9a5cf60c88c1e58bdbb8a7610efa6e3bc5c2f44e.tar.bz2
lua-aports-9a5cf60c88c1e58bdbb8a7610efa6e3bc5c2f44e.tar.xz
buildrepo: present stats differently
we print: <tried>/<total-to-try> <totally-built>/<total-to-build>
Diffstat (limited to 'buildrepo.lua')
-rwxr-xr-xbuildrepo.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/buildrepo.lua b/buildrepo.lua
index bc3db1e..898d1e6 100755
--- a/buildrepo.lua
+++ b/buildrepo.lua
@@ -180,8 +180,10 @@ for _,repo in pairs(args) do
tried = 0
for aport in db:each_in_build_order(pkgs) do
tried = tried + 1
- io.write(("%d/%d/%d/%d %s\n"):format(built, tried, #pkgs,
- stats[repo].aports, aport.pkgname))
+ local totally_built = stats[repo].aports - #pkgs + built
+ io.write(("%d/%d %d/%d %s\n"):format(tried, #pkgs,
+ totally_built, stats[repo].aports,
+ aport.pkgname))
if build_aport(aport, repodest, logdir, opts.s) then
built = built + 1
else