aboutsummaryrefslogtreecommitdiff
path: root/src/nix/upgrade-nix.cc
diff options
context:
space:
mode:
authoralois31 <alois1@gmx-topmail.de>2024-07-02 14:12:07 +0000
committerGerrit Code Review <gerrit@localhost>2024-07-02 14:12:07 +0000
commit24852355d8975dcc786ddc4d5853043a52e4c78c (patch)
treef97dd0189e0baa79f261dafd38644c59c9a42f44 /src/nix/upgrade-nix.cc
parent865a3732faca16a79bf24982011adf100de04463 (diff)
parent0dd1d8ca1cdccfc620644a7f690ed35bcd2d1e74 (diff)
Merge "tree-wide: unify progress bar inactive and paused states" into main
Diffstat (limited to 'src/nix/upgrade-nix.cc')
-rw-r--r--src/nix/upgrade-nix.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix/upgrade-nix.cc b/src/nix/upgrade-nix.cc
index c7f31f3fb..371879791 100644
--- a/src/nix/upgrade-nix.cc
+++ b/src/nix/upgrade-nix.cc
@@ -13,7 +13,6 @@
#include "eval-settings.hh"
#include "attr-path.hh"
#include "names.hh"
-#include "progress-bar.hh"
using namespace nix;
@@ -88,7 +87,7 @@ struct CmdUpgradeNix : MixDryRun, EvalCommand
auto version = DrvName(storePath.name()).version;
if (dryRun) {
- stopProgressBar();
+ logger->pause();
warn("would upgrade to version %s", version);
return;
}
@@ -106,7 +105,7 @@ struct CmdUpgradeNix : MixDryRun, EvalCommand
throw Error("could not verify that '%s' works", program);
}
- stopProgressBar();
+ logger->pause();
auto const fullStorePath = store->printStorePath(storePath);