diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-24 15:05:21 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-24 15:32:38 +0200 |
commit | 3460e4cf007017e89096b4fad083692666b87a20 (patch) | |
tree | f095fe9ebbcd1b46ad022fb5b30179f7de3c2dd0 /src/nix | |
parent | 96051dd057d46d5953b2fbe3de67269d175306dc (diff) |
More progress indicator improvements
In particular, don't show superfluous "fetching path" and "building
path(s)" messages, and show the current round (with --repeat).
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/progress-bar.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index a33ea3423..fb9955190 100644 --- a/src/nix/progress-bar.cc +++ b/src/nix/progress-bar.cc @@ -159,6 +159,10 @@ public: auto machineName = getS(fields, 1); if (machineName != "") i->s += fmt(" on " ANSI_BOLD "%s" ANSI_NORMAL, machineName); + auto curRound = getI(fields, 2); + auto nrRounds = getI(fields, 3); + if (nrRounds != 1) + i->s += fmt(" (round %d/%d)", curRound, nrRounds); } if (type == actSubstitute) { |