From 27067b137286a40c47ae48bf6f296caf14688cd3 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 28 Jan 2013 20:24:20 -0500 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/sync.c') 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; } -- cgit v1.2.3-24-g4f1b