mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: shortRefs are not empty
This commit is contained in:
parent
608a425550
commit
d3e49ac881
4 changed files with 20 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include "globals.hh"
|
||||
#include "nar-info.hh"
|
||||
#include "store-api.hh"
|
||||
#include "strings.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
|
@ -111,7 +112,7 @@ std::string NarInfo::to_string(const Store & store) const
|
|||
res += "NarHash: " + narHash.to_string(HashFormat::Nix32, true) + "\n";
|
||||
res += "NarSize: " + std::to_string(narSize) + "\n";
|
||||
|
||||
res += "References: " + dropEmptyInitThenConcatStringsSep(" ", shortRefs()) + "\n";
|
||||
res += "References: " + concatStringsSep(" ", shortRefs()) + "\n";
|
||||
|
||||
if (deriver)
|
||||
res += "Deriver: " + std::string(deriver->to_string()) + "\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue