do not sort FILE_TYPE_DOWNLOAD_LAKKA type list (#13156)

the `.index` file downloaded using the updater already has the files
sorted from latest version to oldest, so sorting is not wanted here
This commit is contained in:
Tomáš Kelemen 2021-10-26 22:01:38 +02:00 committed by GitHub
parent d75127e9c2
commit 82d4cd9f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9811,7 +9811,7 @@ static unsigned print_buf_lines(file_list_t *list, char *buf,
line_start = buf + i + 1;
}
if (append)
if (append && type != FILE_TYPE_DOWNLOAD_LAKKA)
file_list_sort_on_alt(list);
/* If the buffer was completely full, and didn't end
* with a newline, just ignore the partial last line. */