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:
Dave Reisner 2012-02-13 10:59:26 -05:00 committed by Dan McGee
parent e7bc1e3c9a
commit b4f5a63e7f
1 changed files with 1 additions and 1 deletions

View File

@ -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));
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);
}