From 0ac35b67b8035ad1166df3fb199590bc346d71f2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Aug 2017 18:04:05 +0200 Subject: Allow derivations to update the build phase So the progress bar can show [1/0/1 built, 0.0 MiB DL] building hello-2.10 (configuring): checking whether pread is declared without a macro... yes --- src/libstore/build.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libstore/build.cc') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index cb67d7a6c1..59013c0349 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -3325,6 +3325,11 @@ void DerivationGoal::flushLine() i->second.progress(json.value("done", 0), json.value("expected", 0), json.value("running", 0), json.value("failed", 0)); } + else if (action == "setPhase") { + std::string phase = json["phase"]; + act->result(resSetPhase, phase); + } + } catch (std::exception & e) { printError("bad log message from builder: %s", e.what()); } -- cgit 1.4.1