From 75d6149711d35de76c08519f6ddc6391f7b26ddc Mon Sep 17 00:00:00 2001 From: Jürgen Hötzel Date: Wed, 21 Mar 2007 21:08:08 +0000 Subject: * dont use XferCommand if retrieving local files, fixes wget error: file:////....: Unsupported scheme. --- lib/libalpm/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c index 27038946..519c5084 100644 --- a/lib/libalpm/server.c +++ b/lib/libalpm/server.c @@ -211,7 +211,7 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath, continue; } - if(!handle->xfercommand) { + if(!handle->xfercommand || !strcmp(fileurl->scheme, "file")) { FILE *dlf, *localf = NULL; struct url_stat ust; struct stat st; -- cgit v1.2.3-70-g09d2