1 |
Hi, |
2 |
|
3 |
On 18-10-2019 15:41:32 +0200, Michał Górny wrote: |
4 |
> 3. Directly fetching files from distfiles.gentoo.org will become |
5 |
> a little harder. To fetch a distfile named 'foo-1.tar.gz', you'd have |
6 |
> to use something like: |
7 |
> |
8 |
> $ printf '%s' foo-1.tar.gz | b2sum | cut -c1-2 |
9 |
> 1b |
10 |
> $ wget http://distfiles.gentoo.org/distfiles/1b/foo-1.tar.gz |
11 |
> ... |
12 |
> |
13 |
> |
14 |
> Alternatively, you can: |
15 |
> |
16 |
> $ wget http://distfiles.gentoo.org/distfiles/INDEX |
17 |
> |
18 |
> and grep for the right path there. This INDEX is also a more |
19 |
> lightweight alternative to HTML indexes generated by the servers. |
20 |
|
21 |
Would it be possible to run a service that sends a 302 for the |
22 |
distfiles/foo-1.tar.gz to the appropriate bucket such that manual |
23 |
fetching doesn't require to calculate the hash? |
24 |
|
25 |
I prototyped this myself for distfiles.prefix, and seems like a nice |
26 |
guesture for at least the transition period? |
27 |
|
28 |
Thanks, |
29 |
Fabian |
30 |
|
31 |
|
32 |
-- |
33 |
Fabian Groffen |
34 |
Gentoo on a different level |