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 1E6VOw-0000Ez-P8
	for garchives@archives.gentoo.org; Sat, 20 Aug 2005 15:36:55 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7KFZeb9020047;
	Sat, 20 Aug 2005 15:35:40 GMT
Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201])
	by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7KFW6rI028333
	for <gentoo-user@lists.gentoo.org>; Sat, 20 Aug 2005 15:32:07 GMT
Received: by zproxy.gmail.com with SMTP id v1so576960nzb
        for <gentoo-user@lists.gentoo.org>; Sat, 20 Aug 2005 08:32:27 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=F+/n4zti2FT0mCO8V4xRsc19ecS4KyX5hvBw2u7fITRLgBE1IF4hQ8om3AdV+xOohhwgF0IFQWr80VxJu2WvFK9xLb4N27PcL3RPOf33PcDAL2tonVZSe0wywH/tmDVeEb/DYi8aKcJTp+N97C+WUZPaFnUXhXMatRWNIPItHzs=
Received: by 10.36.104.1 with SMTP id b1mr3186188nzc;
        Sat, 20 Aug 2005 08:32:27 -0700 (PDT)
Received: by 10.36.105.11 with HTTP; Sat, 20 Aug 2005 08:32:27 -0700 (PDT)
Message-ID: <49bf44f10508200832114abfcf@mail.gmail.com>
Date: Sat, 20 Aug 2005 08:32:27 -0700
From: Grant <emailgrant@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Downloading packages from a txt file
In-Reply-To: <200508201304.52645.alex.tsr@gmail.com>
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=ISO-8859-1
Content-Disposition: inline
References: <49bf44f105081908186b330b36@mail.gmail.com>
	 <200508201304.52645.alex.tsr@gmail.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j7KFW6rI028333
X-Archives-Salt: caa6e088-bc61-4e15-9c7c-8782a8683928
X-Archives-Hash: b414139198bec0e7bd7c6d5f47beee93

> > sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i
> > && break; done'
> 
> How about this instead,
> 
> $ wget -ci links.txt
> 
> It always did the job for me :)
> 
> --
> Cheers, Alex.

Hi Alex,

The problem is that the links.txt file was generated by 'emerge -fp
world' and has a bunch of alternate paths for each file separated by
'%20'.  Using 'wget -ci links.txt' turns out like this:

http://gentoo.ccccom.com/distfiles/man-pages-2.07.tar.bz2%20http:/www.fr.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.at.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.uk.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.de.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.us.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2%20http:/www.kernel.org/pub/linux/docs/manpages/man-pages-2.07.tar.bz2
           => `man-pages-2.07.tar.bz2'
Resolving gentoo.ccccom.com... 206.251.252.55
Connecting to gentoo.ccccom.com[206.251.252.55]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
08:26:12 ERROR 404: Not Found.

Do you know how to get 'emerge -fp world' to return only one path per
file or get wget to use the %20-separated alternate paths properly?

- Grant

-- 
gentoo-user@gentoo.org mailing list