1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 23:12:44 +01:00

Add convenience overload for toRealPath()

This commit is contained in:
Eelco Dolstra 2020-02-02 12:28:56 +01:00
parent 958ec5de56
commit 7bcc9f2aaf
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
7 changed files with 20 additions and 15 deletions

View file

@ -1263,7 +1263,7 @@ bool LocalStore::verifyStore(bool checkContents, RepairFlag repair)
else
hashSink = std::make_unique<HashModuloSink>(info->narHash.type, storePathToHash(printStorePath(info->path)));
dumpPath(toRealPath(printStorePath(i)), *hashSink);
dumpPath(Store::toRealPath(i), *hashSink);
auto current = hashSink->finish();
if (info->narHash != nullHash && info->narHash != current.first) {