From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.43)
	id 1E84zx-0002wC-AD
	for garchives@archives.gentoo.org; Wed, 24 Aug 2005 23:49:37 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7ONldqd023371;
	Wed, 24 Aug 2005 23:47:39 GMT
Received: from Princeton.EDU (postoffice02.Princeton.EDU [128.112.130.38])
	by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7ONi8kQ003535
	for <gentoo-user@lists.gentoo.org>; Wed, 24 Aug 2005 23:44:08 GMT
Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148])
	by Princeton.EDU (8.12.9/8.12.9) with ESMTP id j7ONj6pW019720
	for <gentoo-user@lists.gentoo.org>; Wed, 24 Aug 2005 19:45:15 -0400 (EDT)
Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190])
	(authenticated bits=0)
	by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id j7ONj6t1026386
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT)
	for <gentoo-user@lists.gentoo.org>; Wed, 24 Aug 2005 19:45:06 -0400 (EDT)
Received: by sep.dynalias.net (Postfix, from userid 1001)
	id 1CB3939283; Wed, 24 Aug 2005 19:45:17 -0400 (EDT)
Date: Wed, 24 Aug 2005 19:45:17 -0400
From: Willie Wong <wwong@Princeton.EDU>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Downloading packages from a txt file
Message-ID: <20050824234517.GB8382@princeton.edu>
Mail-Followup-To: gentoo-user@lists.gentoo.org
References: <49bf44f105081908186b330b36@mail.gmail.com> <20050824171601.8175.NICK@rout.co.nz> <20050824111406.GB4532@lugmen.org.ar> <4731.192.168.1.2.1124920532.squirrel@www.rout.co.nz>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4731.192.168.1.2.1124920532.squirrel@www.rout.co.nz>
User-Agent: Mutt/1.5.8i
X-Archives-Salt: 4a5af166-4e27-495e-bd3c-798f31b8c8be
X-Archives-Hash: a61c217a0cc9684f2e416df444757337

On Thu, Aug 25, 2005 at 09:55:32AM +1200, Nick Rout wrote:
> On Wed, August 24, 2005 11:14 pm, Fernando Canizo said:
> The sed part transforms from a list all on one line with spaces separating
> to a list one per line, ie:
> 
> url1 url2 url3
> 
> to
> 
> url1
> url2
> url3
> 
> Trouble is this gives a list with many alternatives for each url
> (depending on the number of mirrors shown in the ebuild.
> 
> You then need a script to download each url ONLY if one of the earlier
> url's for the same file hasn't worked.
> 

I don't think you do... I think "wget -c" will only download if the
size doesn't match. And if you trust your internet connection enough,
you can use "wget -nc", which only downloads if a file of the same
name does not exist (but doesn't check for length/size). 

Though, seeing that the internet connection is on a separate machine,
maybe the OP would like to have integrity checking while downloading
(so he won't run into "D'oh, the MD5 sum doesn't match" problem). And
with my poor "skillz" in programming, I'd rather install portage on
Debian then to hack a replacement to download and check the md5 for
the packages. 

W
-- 
"Now it is such a bizarrely improbable coincidence that 
anything so mindboggingly useful could have evolved purely 
by chance that some thinkers have chosen to see it as the 
final and clinching proof of the non-existence of God.
"The argument goes something like this: `I refuse to prove 
that I exist,' says God, `for proof denies faith, and 
without faith I am nothing.'
"`But,' says Man, `The Babel fish is a dead giveaway, isn't 
it? It could not have evolved by chance. It proves you 
exist, and so therefore, by your own arguments, you don't. 
QED.'
Sortir en Pantoufles: up 13 days,  2:42
-- 
gentoo-user@gentoo.org mailing list