diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-14 23:19:04 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-12-14 23:19:04 +0100 |
commit | ba6d2093c74f2023394b1b8a4a4d2a1f405c70c1 (patch) | |
tree | 647c527a0596560c32a0381f9d24fc28cad258f4 /src/nix | |
parent | ac9cc2ec08e95910ecb73745cb011596a33723f0 (diff) |
Fix progress bar
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/progress-bar.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/progress-bar.cc b/src/nix/progress-bar.cc index d20c09f26..c445f31cc 100644 --- a/src/nix/progress-bar.cc +++ b/src/nix/progress-bar.cc @@ -155,7 +155,7 @@ public: if (type == actBuild) { auto name = storePathToName(getS(fields, 0)); if (hasSuffix(name, ".drv")) - name = name.substr(name.size() - 4); + name = name.substr(0, name.size() - 4); i->s = fmt("building " ANSI_BOLD "%s" ANSI_NORMAL, name); auto machineName = getS(fields, 1); if (machineName != "") @@ -180,7 +180,7 @@ public: if (type == actPostBuildHook) { auto name = storePathToName(getS(fields, 0)); if (hasSuffix(name, ".drv")) - name = name.substr(name.size() - 4); + name = name.substr(0, name.size() - 4); i->s = fmt("post-build " ANSI_BOLD "%s" ANSI_NORMAL, name); i->name = DrvName(name).name; } |