mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
parent
fe97c69898
commit
c0015e87af
23 changed files with 205 additions and 213 deletions
|
@ -56,7 +56,7 @@ void Store::exportPath(const Path & path, Sink & sink)
|
|||
Hash hash = hashAndWriteSink.currentHash();
|
||||
if (hash != info->narHash && info->narHash != Hash(info->narHash.type))
|
||||
throw Error(format("hash of path ‘%1%’ has changed from ‘%2%’ to ‘%3%’!") % path
|
||||
% printHash(info->narHash) % printHash(hash));
|
||||
% info->narHash.to_string() % hash.to_string());
|
||||
|
||||
hashAndWriteSink << exportMagic << path << info->references << info->deriver << 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue