diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-02-13 16:59:26 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-13 17:00:28 +0100 |
commit | b4f5a63e7fee5d04949e290bd63e5f0e94bd211e (patch) | |
tree | a9876444fa6f11fb7bd6210dfbbab7df87d9c270 /lib/libalpm/sync.c | |
parent | e7bc1e3c9a122e4daeb6dcf23eebdd55711138a5 (diff) | |
download | pacman-b4f5a63e7fee5d04949e290bd63e5f0e94bd211e.tar.gz pacman-b4f5a63e7fee5d04949e290bd63e5f0e94bd211e.tar.xz |
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/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 2 |
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); } |