forked from lix-project/lix
* Delete the chroot if it already exists (e.g. left over from an
interrupted build).
This commit is contained in:
parent
92cb7c4dfe
commit
6f6bb1fdea
|
@ -1678,6 +1678,7 @@ void DerivationGoal::startBuilder()
|
|||
to ensure that we can create hard-links to non-directory
|
||||
inputs in the fake Nix store in the chroot (see below). */
|
||||
chrootRootDir = drvPath + ".chroot";
|
||||
if (pathExists(chrootRootDir)) deletePath(chrootRootDir);
|
||||
|
||||
/* Clean up the chroot directory automatically. */
|
||||
autoDelChroot = boost::shared_ptr<AutoDelete>(new AutoDelete(chrootRootDir));
|
||||
|
|
Loading…
Reference in a new issue