diff options
author | Jürgen Hötzel <juergen@archlinux.org> | 2007-03-21 21:08:08 +0000 |
---|---|---|
committer | Jürgen Hötzel <juergen@archlinux.org> | 2007-03-21 21:08:08 +0000 |
commit | 75d6149711d35de76c08519f6ddc6391f7b26ddc (patch) | |
tree | 22d6645df7a39340c96c65449d8b43f98f3795bd /lib/libalpm | |
parent | 79ecbd82bd7055f4aa5d40ba6c701fcfe16717d6 (diff) | |
download | pacman-75d6149711d35de76c08519f6ddc6391f7b26ddc.tar.xz |
* dont use XferCommand if retrieving local files, fixes wget error:
file:////....: Unsupported scheme.
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/server.c | 2 |
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; |