mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 15:32:43 +01:00
RemoteStore::addToStoreFromDump(): Invalidate cache entry for added path
This commit is contained in:
parent
c82b67fa05
commit
f51779ee25
3 changed files with 10 additions and 1 deletions
|
|
@ -457,7 +457,9 @@ StorePath RemoteStore::addToStoreFromDump(
|
|||
}
|
||||
if (fsm != dumpMethod)
|
||||
unsupported("RemoteStore::addToStoreFromDump doesn't support this `dumpMethod` `hashMethod` combination");
|
||||
return addCAToStore(dump, name, hashMethod, hashAlgo, references, repair)->path;
|
||||
auto storePath = addCAToStore(dump, name, hashMethod, hashAlgo, references, repair)->path;
|
||||
invalidatePathInfoCacheFor(storePath);
|
||||
return storePath;
|
||||
}
|
||||
|
||||
void RemoteStore::addToStore(const ValidPathInfo & info, Source & source, RepairFlag repair, CheckSigsFlag checkSigs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue