mirror of
https://github.com/NixOS/nix.git
synced 2025-12-10 11:01:03 +01:00
* Fix a bug that caused Fix not to be deterministic (due to addToStore
returning different paths if the hash of the path to be added was already available in the store under a different name).
This commit is contained in:
parent
c834a5c597
commit
73b163c1a1
3 changed files with 9 additions and 9 deletions
|
|
@ -30,7 +30,8 @@ string expandHash(const Hash & hash, const string & target = "",
|
|||
|
||||
/* Copy a file to the nixStore directory and register it in dbRefs.
|
||||
Return the hash code of the value. */
|
||||
void addToStore(string srcPath, string & dstPath, Hash & hash);
|
||||
void addToStore(string srcPath, string & dstPath, Hash & hash,
|
||||
bool deterministicName = false);
|
||||
|
||||
/* Delete a value from the nixStore directory. */
|
||||
void deleteFromStore(const string & path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue