summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJürgen Hötzel <juergen@archlinux.org>2007-03-21 22:08:08 +0100
committerJürgen Hötzel <juergen@archlinux.org>2007-03-21 22:08:08 +0100
commit75d6149711d35de76c08519f6ddc6391f7b26ddc (patch)
tree22d6645df7a39340c96c65449d8b43f98f3795bd
parent79ecbd82bd7055f4aa5d40ba6c701fcfe16717d6 (diff)
downloadpacman-75d6149711d35de76c08519f6ddc6391f7b26ddc.tar.gz
pacman-75d6149711d35de76c08519f6ddc6391f7b26ddc.tar.xz
* dont use XferCommand if retrieving local files, fixes wget error:
file:////....: Unsupported scheme.
-rw-r--r--lib/libalpm/server.c2
1 files changed, 1 insertions, 1 deletions
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;