mirror of
https://github.com/NixOS/nix
synced 2025-07-05 16:31:47 +02:00
* Make dbRefs a mapping from Hash to [Path].
This commit is contained in:
parent
609a224848
commit
5895c160c4
11 changed files with 172 additions and 49 deletions
|
@ -21,6 +21,7 @@ public:
|
|||
Error(const format & f);
|
||||
~Error() throw () { };
|
||||
const char * what() const throw () { return err.c_str(); }
|
||||
const string & msg() const throw () { return err; }
|
||||
};
|
||||
|
||||
class SysError : public Error
|
||||
|
@ -44,9 +45,13 @@ extern string thisSystem;
|
|||
|
||||
|
||||
/* Return an absolutized path, resolving paths relative to the
|
||||
specified directory, or the current directory otherwise. */
|
||||
specified directory, or the current directory otherwise. The path
|
||||
is also canonicalised. */
|
||||
string absPath(string path, string dir = "");
|
||||
|
||||
/* Canonicalise a path (as in realpath(3)). */
|
||||
string canonPath(const string & path);
|
||||
|
||||
/* Return the directory part of the given path, i.e., everything
|
||||
before the final `/'. */
|
||||
string dirOf(string path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue