diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-06-30 21:19:25 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-05 23:00:02 -0400 |
commit | 3eec745910bb908717a8b4ed7f5b630a92a5c9eb (patch) | |
tree | b87189a8d755d7159d61d5ef6f00d9e1a456286f /lib/libalpm/sync.c | |
parent | 6dc71926f9b16ebcf11b924941092d6eab204224 (diff) | |
download | pacman-3eec745910bb908717a8b4ed7f5b630a92a5c9eb.tar.xz |
absorb some _alpm_download params into payload struct
Restore some sanity to the number of arguments passed to _alpm_download
and curl_download_internal.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r-- | lib/libalpm/sync.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 969af3c0..ca7e6579 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -812,8 +812,10 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas) len = strlen(server_url) + strlen(payload->filename) + 2; CALLOC(payload->fileurl, len, sizeof(char), RET_ERR(handle, ALPM_ERR_MEMORY, -1)); snprintf(payload->fileurl, len, "%s/%s", server_url, payload->filename); + payload->handle = handle; + payload->allow_resume = 1; - ret = _alpm_download(handle, payload, cachedir, NULL, 0, 1, 0); + ret = _alpm_download(payload, cachedir, NULL); if(ret != -1) { break; } |