* Delete the chroot if it already exists (e.g. left over from an

interrupted build).
This commit is contained in:
Eelco Dolstra 2008-12-15 23:55:11 +00:00
parent 92cb7c4dfe
commit 6f6bb1fdea
1 changed files with 1 additions and 0 deletions

View File

@ -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));