Skip to content

Commit

Permalink
Update src/nix/prefetch.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
  • Loading branch information
Mic92 and edolstra authored Jul 5, 2024
1 parent 8cea1fb commit 05381c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nix/prefetch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ std::tuple<StorePath, Hash> prefetchFile(
/* If the archive unpacks to a single file/directory, then use
that as the top-level. */
tmpFile = entries->path();
unsigned fileCount = std::distance(entries, std::filesystem::directory_iterator{});
auto fileCount = std::distance(entries, std::filesystem::directory_iterator{});
if (fileCount != 1) {
/* otherwise, use the directory itself */
tmpFile = unpacked;
Expand Down

0 comments on commit 05381c0

Please sign in to comment.