mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 13:41:00 +01:00
Fix copyPathToStore()
This commit is contained in:
parent
e89d3e0edf
commit
e7f8aa8bdd
5 changed files with 58 additions and 44 deletions
|
|
@ -42,6 +42,16 @@ struct InputAccessor
|
|||
const Path & path,
|
||||
Sink & sink,
|
||||
PathFilter & filter = defaultPathFilter);
|
||||
|
||||
bool operator == (const InputAccessor & x) const
|
||||
{
|
||||
return number == x.number;
|
||||
}
|
||||
|
||||
bool operator < (const InputAccessor & x) const
|
||||
{
|
||||
return number < x.number;
|
||||
}
|
||||
};
|
||||
|
||||
struct FSInputAccessor : InputAccessor
|
||||
|
|
@ -94,6 +104,16 @@ struct SourcePath
|
|||
std::string to_string() const;
|
||||
|
||||
SourcePath append(std::string_view s) const;
|
||||
|
||||
bool operator == (const SourcePath & x) const
|
||||
{
|
||||
return std::tie(accessor, path) == std::tie(x.accessor, x.path);
|
||||
}
|
||||
|
||||
bool operator < (const SourcePath & x) const
|
||||
{
|
||||
return std::tie(accessor, path) < std::tie(x.accessor, x.path);
|
||||
}
|
||||
};
|
||||
|
||||
std::ostream & operator << (std::ostream & str, const SourcePath & path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue