mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
lib/sync: use full delta size as max download size
The max filesize for a delta download must be the full size of the delta file, not just what's remaining. Fixes FS#28345 Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
e7bc1e3c9a
commit
b4f5a63e7f
@ -845,7 +845,7 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas)
|
|||||||
|
|
||||||
CALLOC(dpayload, 1, sizeof(*dpayload), RET_ERR(handle, ALPM_ERR_MEMORY, -1));
|
CALLOC(dpayload, 1, sizeof(*dpayload), RET_ERR(handle, ALPM_ERR_MEMORY, -1));
|
||||||
STRDUP(dpayload->remote_name, delta->delta, RET_ERR(handle, ALPM_ERR_MEMORY, -1));
|
STRDUP(dpayload->remote_name, delta->delta, RET_ERR(handle, ALPM_ERR_MEMORY, -1));
|
||||||
dpayload->max_size = delta->download_size;
|
dpayload->max_size = delta->delta_size;
|
||||||
|
|
||||||
files = alpm_list_add(files, dpayload);
|
files = alpm_list_add(files, dpayload);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user