Gentoo Archives: gentoo-osx

From: Grobian <grobian@g.o>
To: gentoo-osx@l.g.o
Subject: [gentoo-osx] using curl to fetch files (the default in the OSX installer)
Date: Sat, 06 Aug 2005 08:32:44
Message-Id: 42F47578.9020401@gentoo.org
1 Hi all,
2
3 While working on an ebuild I noted that that while downloading distfiles
4 from the mirrors I ended up with files filled with 404 HTML pages. It
5 became clear soon, that curl was just downloading these pages and
6 returned 0 to indicate success. After a discussion with 2r2d in #-osx
7 we came to the conclusion that curl needs the -f (-fail) flag in order
8 to return something like this on a 404:
9
10 curl: (22) The requested URL returned error: 404
11
12 I tested this in my FETCHCOMMAND (I put the -f just in front of the -#)
13 and verified that with this flag curl behaves as portage expects it and
14 goes on to the next mirror if the file was not found.
15
16 I think this change should be into our installer, as it is a simple fix
17 which prevents some hair-pulling :)
18
19 --
20 Fabian Groffen
21 eBuild && Porting
22 Gentoo for Mac OS X
23
24 --
25 gentoo-osx@g.o mailing list

Replies