From c36467ad2e2e27d04e681144e0e10417c53c10c1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 14 Aug 2017 20:14:55 +0200 Subject: Improve substitution progress indicator E.g. $ nix build --store local?root=/tmp/nix nixpkgs.firefox-unwrapped [0/1 built, 1/97/98 fetched, 65.8/92.8 MiB DL, 203.2/309.2 MiB copied] downloading 'https://cache.nixos.org/nar/1czm9fk0svacy4h6a3fzkpafi4f7a9gml36kk8cq1igaghbspg3k.nar.xz' --- src/libutil/logging.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libutil') diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh index 6a4a36171..7633408ea 100644 --- a/src/libutil/logging.hh +++ b/src/libutil/logging.hh @@ -16,6 +16,8 @@ typedef enum { typedef enum { actUnknown = 0, actCopyPath = 100, + actDownload = 101, + actRealise = 102, } ActivityType; class Activity @@ -38,10 +40,6 @@ typedef enum { evBuildStarted = 1, evBuildOutput = 2, evBuildFinished = 3, - evDownloadCreated = 4, - evDownloadDestroyed = 5, - evDownloadProgress = 6, - evDownloadSucceeded = 7, evSubstitutionCreated = 8, evSubstitutionStarted = 9, evSubstitutionFinished = 10, -- cgit v1.2.3