diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-24 12:50:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-24 12:50:49 +0000 |
commit | 9a5cf60c88c1e58bdbb8a7610efa6e3bc5c2f44e (patch) | |
tree | 672211d955b07ecaec71c8d24a7356e6f1555fa5 /buildrepo.lua | |
parent | 17d981ec3303ca276a23f442dd7de7cc5b5e1a7f (diff) | |
download | lua-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-x | buildrepo.lua | 6 |
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 |