diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-23 21:57:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 21:57:53 +0200 |
commit | 8d9402f411643c451cf2a0776afcb3a1af0f9a8c (patch) | |
tree | fe73a6c74465b7b1c36840f7fb267d04157b330d /src/libstore/profiles.cc | |
parent | 8ee779da7dabeef935ec61667120aa26743e472a (diff) | |
parent | 4ce8a3ed452f06b18a40cffefc37d47c916927a8 (diff) |
Merge pull request #4054 from edolstra/fix-4021
registerOutputs(): Don't call canonicalisePathMetaData() twice
Diffstat (limited to 'src/libstore/profiles.cc')
-rw-r--r-- | src/libstore/profiles.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/profiles.cc b/src/libstore/profiles.cc index c20386e2b..c3809bad7 100644 --- a/src/libstore/profiles.cc +++ b/src/libstore/profiles.cc @@ -39,13 +39,10 @@ std::pair<Generations, std::optional<GenerationNumber>> findGenerations(Path pro for (auto & i : readDirectory(profileDir)) { if (auto n = parseName(profileName, i.name)) { auto path = profileDir + "/" + i.name; - struct stat st; - if (lstat(path.c_str(), &st) != 0) - throw SysError("statting '%1%'", path); gens.push_back({ .number = *n, .path = path, - .creationTime = st.st_mtime + .creationTime = lstat(path).st_mtime }); } } |