forked from lix-project/lix
Errors writing to the NAR cache should not be fatal
This commit is contained in:
parent
d8306148e0
commit
75cd75b1ae
|
@ -19,9 +19,13 @@ Path RemoteFSAccessor::makeCacheFile(const Path & storePath)
|
|||
|
||||
void RemoteFSAccessor::addToCache(const Path & storePath, const std::string & nar)
|
||||
{
|
||||
if (cacheDir != "")
|
||||
try {
|
||||
if (cacheDir == "") return;
|
||||
/* FIXME: do this asynchronously. */
|
||||
writeFile(makeCacheFile(storePath), nar);
|
||||
} catch (...) {
|
||||
ignoreException();
|
||||
}
|
||||
}
|
||||
|
||||
std::pair<ref<FSAccessor>, Path> RemoteFSAccessor::fetch(const Path & path_)
|
||||
|
|
Loading…
Reference in a new issue