daemon: Do not reset timestamps and permissions on substituted items.

'guix substitute' now takes care of it via 'restore-file'.

* nix/libstore/build.cc (SubstitutionGoal::finished): Remove call to
'canonicalisePathMetaData'.
This commit is contained in:
Ludovic Courtès 2020-12-14 15:11:51 +01:00
parent 77a1efed9e
commit 15cf28fbb4
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -3085,7 +3085,8 @@ void SubstitutionGoal::finished()
if (repair) replaceValidPath(storePath, destPath);
canonicalisePathMetaData(storePath, -1);
/* Note: 'guix substitute' takes care of resetting timestamps and
permissions on 'destPath', so no need to do it here. */
worker.store.optimisePath(storePath); // FIXME: combine with hashPath()