Fix calculation of space needed for download package
The calculation used the size of the package rather than the amount remaining to download for partially downloaded packages. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
479f4d574a
commit
b60b779fc8
1 changed files with 1 additions and 1 deletions
|
@ -805,7 +805,7 @@ static int download_files(alpm_handle_t *handle)
|
|||
|
||||
for(i = files, idx = 0; i; i = i->next, idx++) {
|
||||
const alpm_pkg_t *pkg = i->data;
|
||||
file_sizes[idx] = pkg->size;
|
||||
file_sizes[idx] = pkg->download_size;
|
||||
}
|
||||
|
||||
ret = _alpm_check_downloadspace(handle, temporary_cachedir, num_files, file_sizes);
|
||||
|
|
Loading…
Add table
Reference in a new issue