Re: offline downloading...

Ewan Mac Mahon <[email protected]> Fri, 25 Oct 2002 16:38:09 +0100
Newsgroups gmane.linux.gentoo.newbies
Message-ID <[email protected]>
On Fri, Oct 25, 2002 at 10:05:58AM -0500, Thomas T. Veldhouse wrote:
> The only catch here is that everything MUST be at ibiblio (assuming that is
> your primary mirror).  Anything that is not yet there will not attempt to be
> downloaded from the seconary URL.

Sure it will. Emerge's standard behavior is to try the ibiblio URI, see 
whether or not it's got the file, and if not try the next URI and so on
until it's either got it or run out of options. Since the echo command is
not actually going to download anything emerge will run though all the
posibilities before finally giving up. For example using the FETCHCOMMAND 
setting as shown and doing 
# emerge --fetchonly bzflag
gets you a fetchurls file with the following in it:
ttp://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bzflag-1.7e6.tgz
http://unc.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz
http://belnet.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz
http://telia.dl.sourceforge.net/pub/sourceforge/bzflag/bzflag-1.7e6.tgz
http://easynews.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz
http://umn.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz
http://twtelecom.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz
http://cesnet.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz
http://switch.dl.sourceforge.net/sourceforge/bzflag/bzflag-1.7e6.tgz

Hence the need to use wget's --no-clobber option to avoid downloading the
same tarball several (in this case nine!) times.

Ewan