index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2008-08-03 20:03:05 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-05 09:58:52 -0500 |
commit | 4476598e4e128f4595d5383ecb51a9576a447b5b (patch) | |
tree | 3cfeaa535b8731f67c1265512f210566bbe78139 | |
parent | 9bc799ec7b1718e6d90ceedd5e08672068e26e10 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 15 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index b5f0b876..ef12646e 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -340,21 +340,6 @@ cleanup: static int download(const char *url, const char *localpath, time_t mtimeold, time_t *mtimenew) { int ret; - const char *proto = "file://"; - int len = strlen(proto); - if(strncmp(url, proto, len) == 0) { - /* we can simply grab an absolute path from the file:// url by starting - * our path at the char following the proto (the root '/') - */ - const char *sourcefile = url + len; - const char *filename = get_filename(url); - char *destfile = get_destfile(localpath, filename); - - ret = _alpm_copyfile(sourcefile, destfile); - FREE(destfile); - /* copyfile returns 1 on failure, we want to return -1 on failure */ - return(ret ? -1 : 0); - } /* We have a few things to take into account here. * 1. If we have both internal/external available, choose based on |