summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-02-13 10:59:26 -0500
committerDan McGee <dan@archlinux.org>2012-02-13 10:00:28 -0600
commitb4f5a63e7fee5d04949e290bd63e5f0e94bd211e (patch)
treea9876444fa6f11fb7bd6210dfbbab7df87d9c270 /lib/libalpm
parente7bc1e3c9a122e4daeb6dcf23eebdd55711138a5 (diff)
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>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index cf209717..a946a7df 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -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);
}