summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-29 02:24:20 +0100
committerAllan McRae <allan@archlinux.org>2013-01-29 04:36:58 +0100
commit27067b137286a40c47ae48bf6f296caf14688cd3 (patch)
treeffcb30acd0b2247f0d6a38daf7ad47e65dc58db2 /lib/libalpm/sync.c
parentf21e1f54aa92e78f701c11696a2b4b404ed5672b (diff)
downloadpacman-27067b137286a40c47ae48bf6f296caf14688cd3.tar.gz
pacman-27067b137286a40c47ae48bf6f296caf14688cd3.tar.xz
dload: pass back the effective URL to callers of _alpm_download
I suspect that eventually we're going to end up returning a pointer to an allocated struct to describe the download result, but that's for another patch when the need arises... Fixes FS#33508. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/sync.c')
-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 efd5c3f0..6a5cab63 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -877,7 +877,7 @@ static int download_single_file(alpm_handle_t *handle, struct dload_payload *pay
MALLOC(payload->fileurl, len, RET_ERR(handle, ALPM_ERR_MEMORY, -1));
snprintf(payload->fileurl, len, "%s/%s", server_url, payload->remote_name);
- if(_alpm_download(payload, cachedir, NULL) != -1) {
+ if(_alpm_download(payload, cachedir, NULL, NULL) != -1) {
return 0;
}