1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

* dont use XferCommand if retrieving local files, fixes wget error:

file:////....: Unsupported scheme.
This commit is contained in:
Jürgen Hötzel 2007-03-21 21:08:08 +00:00
parent 79ecbd82bd
commit 75d6149711

View File

@ -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;