diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-08-29T13·13+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-08-29T13·13+0200 |
commit | c8235c531355d612d48f633f8a6ace5fcd97f5fe (patch) | |
tree | c54d398380ef786e6895b5427774bbd750566b31 /src/nix/run.cc | |
parent | 05d68a6e23127e490193599f75489006830b302c (diff) |
nix run: Flush the progress bar before starting the command
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r-- | src/nix/run.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc index 8175d38e8ca6..2fc93a05c512 100644 --- a/src/nix/run.cc +++ b/src/nix/run.cc @@ -6,6 +6,7 @@ #include "local-store.hh" #include "finally.hh" #include "fs-accessor.hh" +#include "progress-bar.hh" #if __linux__ #include <sys/mount.h> @@ -107,6 +108,8 @@ struct CmdRun : InstallablesCommand std::string cmd = *command.begin(); Strings args = command; + stopProgressBar(); + /* If this is a diverted store (i.e. its "logical" location (typically /nix/store) differs from its "physical" location (e.g. /home/eelco/nix/store), then run the command in a |