[pacman-dev] CVS update of pacman-lib/lib/libalpm (server.c)
Juergen Hoetzel
juergen at archlinux.org
Wed Mar 21 17:08:08 EDT 2007
Date: Wednesday, March 21, 2007 @ 17:08:08
Author: juergen
Path: /home/cvs-pacman/pacman-lib/lib/libalpm
Modified: server.c (1.27 -> 1.28)
* dont use XferCommand if retrieving local files, fixes wget error:
file:////....: Unsupported scheme.
----------+
server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: pacman-lib/lib/libalpm/server.c
diff -u pacman-lib/lib/libalpm/server.c:1.27 pacman-lib/lib/libalpm/server.c:1.28
--- pacman-lib/lib/libalpm/server.c:1.27 Tue Mar 20 23:08:19 2007
+++ pacman-lib/lib/libalpm/server.c Wed Mar 21 17:08:08 2007
@@ -211,7 +211,7 @@
continue;
}
- if(!handle->xfercommand) {
+ if(!handle->xfercommand || !strcmp(fileurl->scheme, "file")) {
FILE *dlf, *localf = NULL;
struct url_stat ust;
struct stat st;
More information about the pacman-dev
mailing list