From: | Grant <emailgrant@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Downloading packages from a txt file | ||
Date: | Sat, 20 Aug 2005 15:36:55 | ||
Message-Id: | 49bf44f10508200832114abfcf@mail.gmail.com | ||
In Reply to: | Re: [gentoo-user] Downloading packages from a txt file by Alex |
1 | > > sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i |
2 | > > && break; done' |
3 | > |
4 | > How about this instead, |
5 | > |
6 | > $ wget -ci links.txt |
7 | > |
8 | > It always did the job for me :) |
9 | > |
10 | > -- |
11 | > Cheers, Alex. |
12 | |
13 | Hi Alex, |
14 | |
15 | The problem is that the links.txt file was generated by 'emerge -fp |
16 | world' and has a bunch of alternate paths for each file separated by |
17 | '%20'. Using 'wget -ci links.txt' turns out like this: |
18 | |
19 | 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 |
20 | => `man-pages-2.07.tar.bz2' |
21 | Resolving gentoo.ccccom.com... 206.251.252.55 |
22 | Connecting to gentoo.ccccom.com[206.251.252.55]:80... connected. |
23 | HTTP request sent, awaiting response... 404 Not Found |
24 | 08:26:12 ERROR 404: Not Found. |
25 | |
26 | Do you know how to get 'emerge -fp world' to return only one path per |
27 | file or get wget to use the %20-separated alternate paths properly? |
28 | |
29 | - Grant |
30 | |
31 | -- |
32 | gentoo-user@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-user] Downloading packages from a txt file | Alex <alex.tsr@×××××.com> |
Re: [gentoo-user] Downloading packages from a txt file | Ow Mun Heng <Ow.Mun.Heng@×××.com> |