From 9a5cf60c88c1e58bdbb8a7610efa6e3bc5c2f44e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Jan 2014 12:50:49 +0000 Subject: buildrepo: present stats differently we print: / / --- buildrepo.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'buildrepo.lua') 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 -- cgit v1.2.3