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