From 01615b5f63ad26307a7e47a9b6508e5e779a1e83 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Oct 2015 15:03:29 +0200 Subject: Show progress indicator for builtin fetchurl --- src/libstore/builtins.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libstore/builtins.cc') diff --git a/src/libstore/builtins.cc b/src/libstore/builtins.cc index 091a67428e4c..2a4396308399 100644 --- a/src/libstore/builtins.cc +++ b/src/libstore/builtins.cc @@ -7,14 +7,16 @@ void builtinFetchurl(const BasicDerivation & drv) { auto url = drv.env.find("url"); if (url == drv.env.end()) throw Error("attribute ‘url’ missing"); - printMsg(lvlInfo, format("downloading ‘%1%’...") % url->second); /* No need to do TLS verification, because we check the hash of the result anyway. */ DownloadOptions options; options.verifyTLS = false; - auto data = downloadFile(url->second, options); // FIXME: show progress + /* Show a progress indicator, even though stderr is not a tty. */ + options.forceProgress = true; + + auto data = downloadFile(url->second, options); auto out = drv.env.find("out"); if (out == drv.env.end()) throw Error("attribute ‘url’ missing"); -- cgit 1.4.1