Handle repairing paths that are in build-chroot-dirs
This commit is contained in:
parent
a3f205b249
commit
a807edfae8
1 changed files with 7 additions and 0 deletions
|
@ -1875,6 +1875,13 @@ void DerivationGoal::startBuilder()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* If we're repairing, it's possible that we're rebuilding a
|
||||||
|
path that is in settings.dirsInChroot (typically the
|
||||||
|
dependencies of /bin/sh). Throw them out. */
|
||||||
|
if (repair)
|
||||||
|
foreach (DerivationOutputs::iterator, i, drv.outputs)
|
||||||
|
dirsInChroot.erase(i->second.path);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
throw Error("chroot builds are not supported on this platform");
|
throw Error("chroot builds are not supported on this platform");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue