aboutsummaryrefslogtreecommitdiff
path: root/src/nix/run.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-29 15:13:30 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-29 15:13:30 +0200
commitc8235c531355d612d48f633f8a6ace5fcd97f5fe (patch)
treec54d398380ef786e6895b5427774bbd750566b31 /src/nix/run.cc
parent05d68a6e23127e490193599f75489006830b302c (diff)
nix run: Flush the progress bar before starting the command
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r--src/nix/run.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index 8175d38e8..2fc93a05c 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