mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Update src/nix/prefetch.cc
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
8cea1fbd97
commit
05381c0b30
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue