Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-osx
Navigation:
Lists: gentoo-osx: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-osx@g.o
From: Grobian <grobian@g.o>
Subject: using curl to fetch files (the default in the OSX installer)
Date: Sat, 06 Aug 2005 10:31:52 +0200
Hi all,

While working on an ebuild I noted that that while downloading distfiles 
from the mirrors I ended up with files filled with 404 HTML pages.  It 
became clear soon, that curl was just downloading these pages and 
returned 0 to indicate success.  After a discussion with 2r2d in #-osx 
we came to the conclusion that curl needs the -f (-fail) flag in order 
to return something like this on a 404:

curl: (22) The requested URL returned error: 404

I tested this in my FETCHCOMMAND (I put the -f just in front of the -#) 
and verified that with this flag curl behaves as portage expects it and 
goes on to the next mirror if the file was not found.

I think this change should be into our installer, as it is a simple fix 
which prevents some hair-pulling :)

-- 
Fabian Groffen
eBuild && Porting
Gentoo for Mac OS X 

-- 
gentoo-osx@g.o mailing list


Replies:
Re: using curl to fetch files (the default in the OSX installer)
-- Hasan Khalil
Navigation:
Lists: gentoo-osx: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Current status
Next by thread:
Re: using curl to fetch files (the default in the OSX installer)
Previous by date:
Re: also ddd Re: Current status
Next by date:
Re: using curl to fetch files (the default in the OSX installer)


Updated Jun 17, 2009

Summary: Archive of the gentoo-osx mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.