Fix "pacman -U <url>" operations
Commite6a6d307
detected complete part files by comparing a payload's max_size to initial_size. However, these values are also equal when we use pacman -U on a URL as max_size is set to 0 in that case. Add a further condition to avoid that. Signed-off-by: Allan McRae <allan@archlinux.org> (cherry picked from commite54617c7d5
)
This commit is contained in:
parent
7faa795268
commit
d61c398b2c
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ static int curl_download_internal(struct dload_payload *payload,
|
|||
|
||||
curl_set_handle_opts(payload, curl, error_buffer);
|
||||
|
||||
if(payload->max_size == payload->initial_size) {
|
||||
if(payload->max_size == payload->initial_size && payload->max_size != 0) {
|
||||
/* .part file is complete */
|
||||
ret = 0;
|
||||
goto cleanup;
|
||||
|
|
Loading…
Add table
Reference in a new issue