mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Move StorePathWithOutputs
into its own header/file
In the following commits it will become less prevalent.
This commit is contained in:
parent
f7d9f7c338
commit
7a2b566dc8
8 changed files with 55 additions and 40 deletions
|
@ -590,14 +590,6 @@ std::map<std::string, Hash> staticOutputHashes(Store& store, const Derivation& d
|
|||
}
|
||||
|
||||
|
||||
std::string StorePathWithOutputs::to_string(const Store & store) const
|
||||
{
|
||||
return outputs.empty()
|
||||
? store.printStorePath(path)
|
||||
: store.printStorePath(path) + "!" + concatStringsSep(",", outputs);
|
||||
}
|
||||
|
||||
|
||||
bool wantOutput(const string & output, const std::set<string> & wanted)
|
||||
{
|
||||
return wanted.empty() || wanted.find(output) != wanted.end();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue