fetch_url: look for files in cache before downloading
commit4e60b9646d69227c6c9f226bf03a12158feaaee7
authorDave Reisner <dreisner@archlinux.org>
Sat, 14 Jan 2012 20:27:48 +0000 (14 15:27 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 19 Jan 2012 03:56:50 +0000 (18 21:56 -0600)
treee8a896893e1ac798bfbd275fabb2acd9653a4455
parentb426488e2b1cf4e464f7f56dbcf2629a3a73a54a
fetch_url: look for files in cache before downloading

We lost this logic somewhere between the libfetch and libcurl
transition, as it existed in the internal downloader, but was pulled
back only into the sync workflow. Add a helper function that will let us
check for existance in the filecache prior to calling the downloader.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c