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