1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Remove startProgressBar()

This commit is contained in:
Eelco Dolstra 2025-02-18 15:18:16 +01:00
parent 1aee6cf974
commit 227114d127
3 changed files with 2 additions and 12 deletions

View file

@ -560,9 +560,4 @@ std::unique_ptr<Logger> makeProgressBar()
return std::make_unique<ProgressBar>(isTTY());
}
void startProgressBar()
{
logger = makeProgressBar();
}
}

View file

@ -7,6 +7,4 @@ namespace nix {
std::unique_ptr<Logger> makeProgressBar();
void startProgressBar();
}

View file

@ -4,7 +4,7 @@
#include "store-api.hh"
#include "filetransfer.hh"
#include "finally.hh"
#include "progress-bar.hh"
#include "loggers.hh"
#include "tarfile.hh"
#include "attr-path.hh"
#include "eval-inline.hh"
@ -190,10 +190,7 @@ static int main_nix_prefetch_url(int argc, char * * argv)
if (args.size() > 2)
throw UsageError("too many arguments");
Finally f([]() { logger->stop(); });
if (isTTY())
startProgressBar();
setLogFormat("bar");
auto store = openStore();
auto state = std::make_unique<EvalState>(myArgs.lookupPath, store, fetchSettings, evalSettings);