aboutsummaryrefslogtreecommitdiff
path: root/src/nix/profile.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-11 01:51:14 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-11 18:54:50 -0500
commita8f45b5e5a42daa9bdee640255464d4dbb431352 (patch)
tree2acc2850c93f2edd4327918dd4886bbbb138b6e0 /src/nix/profile.cc
parenta3ba80357d3a792eb1690011f253c64840c6ae72 (diff)
Improve `OutputsSpec` slightly
A few little changes preparing for the rest.
Diffstat (limited to 'src/nix/profile.cc')
-rw-r--r--src/nix/profile.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc
index 22ee51ab9..346c4e117 100644
--- a/src/nix/profile.cc
+++ b/src/nix/profile.cc
@@ -44,7 +44,7 @@ struct ProfileElement
std::string describe() const
{
if (source)
- return fmt("%s#%s%s", source->originalRef, source->attrPath, printOutputsSpec(source->outputs));
+ return fmt("%s#%s%s", source->originalRef, source->attrPath, source->outputs.to_string());
StringSet names;
for (auto & path : storePaths)
names.insert(DrvName(path.name()).name);
@@ -553,8 +553,8 @@ struct CmdProfileList : virtual EvalCommand, virtual StoreCommand, MixDefaultPro
for (size_t i = 0; i < manifest.elements.size(); ++i) {
auto & element(manifest.elements[i]);
logger->cout("%d %s %s %s", i,
- element.source ? element.source->originalRef.to_string() + "#" + element.source->attrPath + printOutputsSpec(element.source->outputs) : "-",
- element.source ? element.source->resolvedRef.to_string() + "#" + element.source->attrPath + printOutputsSpec(element.source->outputs) : "-",
+ element.source ? element.source->originalRef.to_string() + "#" + element.source->attrPath + element.source->outputs.to_string() : "-",
+ element.source ? element.source->resolvedRef.to_string() + "#" + element.source->attrPath + element.source->outputs.to_string() : "-",
concatStringsSep(" ", store->printStorePathSet(element.storePaths)));
}
}