1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 21:51:50 +02:00

In repair mode, update the hash of rebuilt paths

Otherwise subsequent invocations of "--repair" will keep rebuilding
the path.  This only happens if the path content differs between
builds (e.g. due to timestamps).
This commit is contained in:
Eelco Dolstra 2013-06-13 14:46:07 +02:00
parent 6b05f688ee
commit f9ff67e948
2 changed files with 5 additions and 4 deletions

View file

@ -1673,7 +1673,7 @@ void DerivationGoal::startBuilder()
{
PathSet missing = outputPaths(drv.outputs);
foreach (PathSet::iterator, i, validPaths) missing.erase(*i);
startNest(nest, lvlInfo, format("building path(s) %1%") % showPaths(missing));
startNest(nest, lvlInfo, format(repair ? "repairing path(s) %1%" : "building path(s) %1%") % showPaths(missing));
/* Right platform? */
if (!canBuildLocally(drv.platform))