forked from lix-project/lix
Prevent .chroot from being GC'ed when using LocalStore::buildDerivation()
Fixes #616.
This commit is contained in:
parent
eadb86f447
commit
e12cf82782
|
@ -911,6 +911,10 @@ DerivationGoal::DerivationGoal(const Path & drvPath, const BasicDerivation & drv
|
||||||
state = &DerivationGoal::haveDerivation;
|
state = &DerivationGoal::haveDerivation;
|
||||||
name = (format("building of %1%") % showPaths(outputPaths(drv))).str();
|
name = (format("building of %1%") % showPaths(outputPaths(drv))).str();
|
||||||
trace("created");
|
trace("created");
|
||||||
|
|
||||||
|
/* Prevent the .chroot directory from being
|
||||||
|
garbage-collected. (See isActiveTempFile() in gc.cc.) */
|
||||||
|
worker.store.addTempRoot(drvPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue