From 7664a58d4e95f0e1f1b433add61f3b658b926aaa Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 4 Feb 2011 09:15:22 -0600 Subject: Add comment about download file resolution Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 15d75556..7a98eb12 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -172,6 +172,14 @@ static int download_internal(const char *url, const char *localpath, /* NOTE: libfetch does not reset the error code, be sure to do it before * calls into the library */ + /* TODO: if we call fetchStat() and get a redirect (disabling automagic + * redirect following), we should repeat the file locator stuff and get a new + * filename rather than only base if off the first URL, and then verify + * get_filename() didn't return ''. Of course, libfetch might not even allow + * us to even get that URL...FS#22645. This would allow us to download things + * without totally puking like + * http://www.archlinux.org/packages/community/x86_64/exim/download/ */ + /* find out the remote size *and* mtime in one go. there is a lot of * trouble in trying to do both size and "if-modified-since" logic in a * non-stat request, so avoid it. */ -- cgit v1.2.3-24-g4f1b