mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-13 01:36:15 +02:00
Make --repair work on Darwin
Mac OS X doesn't allow renaming a read-only directory. http://hydra.nixos.org/build/9113895
This commit is contained in:
parent
dfbcb7c403
commit
b6def5b542
1 changed files with 4 additions and 4 deletions
|
@ -2810,12 +2810,12 @@ void SubstitutionGoal::finished()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
canonicalisePathMetaData(destPath, -1);
|
|
||||||
|
|
||||||
worker.store.optimisePath(destPath); // FIXME: combine with hashPath()
|
|
||||||
|
|
||||||
if (repair) replaceValidPath(storePath, destPath);
|
if (repair) replaceValidPath(storePath, destPath);
|
||||||
|
|
||||||
|
canonicalisePathMetaData(storePath, -1);
|
||||||
|
|
||||||
|
worker.store.optimisePath(storePath); // FIXME: combine with hashPath()
|
||||||
|
|
||||||
ValidPathInfo info2;
|
ValidPathInfo info2;
|
||||||
info2.path = storePath;
|
info2.path = storePath;
|
||||||
info2.hash = hash.first;
|
info2.hash = hash.first;
|
||||||
|
|
Loading…
Reference in a new issue