From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 65905138334 for ; Sat, 19 Oct 2019 13:53:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A10CE089B; Sat, 19 Oct 2019 13:53:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F21C1E0871 for ; Sat, 19 Oct 2019 13:53:21 +0000 (UTC) Received: from pomiot (c134-66.icpnet.pl [85.221.134.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 251AA34C05A; Sat, 19 Oct 2019 13:53:18 +0000 (UTC) Message-ID: <7eb470892eadfb55c4e340c667dda553d026ae31.camel@gentoo.org> Subject: Re: [gentoo-dev] New distfile mirror layout From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Sat, 19 Oct 2019 15:53:14 +0200 In-Reply-To: <20191019133102.GL19098@gentoo.org> References: <4c7465824f1fb69924c826f6bbe3ee73afa08ec8.camel@gentoo.org> <20191019133102.GL19098@gentoo.org> Organization: Gentoo Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Z0YWBLs7XjWpsM7KNZIN" User-Agent: Evolution 3.32.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 X-Archives-Salt: 4a8183f8-8689-45e7-a829-91a876315a1e X-Archives-Hash: 74fc198271c09a907554bb012dbc9d57 --=-Z0YWBLs7XjWpsM7KNZIN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2019-10-19 at 15:31 +0200, Fabian Groffen wrote: > Hi, >=20 > On 18-10-2019 15:41:32 +0200, Micha=C5=82 G=C3=B3rny 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: > >=20 > > $ printf '%s' foo-1.tar.gz | b2sum | cut -c1-2 > > 1b > > $ wget http://distfiles.gentoo.org/distfiles/1b/foo-1.tar.gz > > ... > >=20 > >=20 > > Alternatively, you can: > >=20 > > $ wget http://distfiles.gentoo.org/distfiles/INDEX > >=20 > > and grep for the right path there. This INDEX is also a more > > lightweight alternative to HTML indexes generated by the servers. >=20 > 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? >=20 > I prototyped this myself for distfiles.prefix, and seems like a nice > guesture for at least the transition period? >=20 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. --=20 Best regards, Micha=C5=82 G=C3=B3rny --=-Z0YWBLs7XjWpsM7KNZIN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAl2rFUpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM3 NkE4NDUwOTQwOThEMjhDQzhCMjZDNTYzOUFEQUUyMzI5RTI0MEUACgkQY5ra4jKe JA7JuAf+MPU4z3ogsAqs6rRKB1WqRvvFv2g8RoRsQEHWvzHDciUNxPoLtR0yO/gY 9PlmxBSryMto4yBUyh4Wasz3laXiCI4ku1MnV/kNwaT2tArc4EMTc1dh2gvNIne6 xHU6QWzJLisf296JqPUUUa9L1x97x6jIZZkxCKm8rZPan4JZMwP3+MCA2ppr20tG z7t7ezmkVWOY6Xs6vIL2/e0bKMIcdKc/H4WXVpg2Hl6YL34c0CYjrg8ji5VzlSzs hCpoQ850Ise2Quf0f3fYkaZJta8aqOZRsi4rCDKP5FFyysRa8cmFLAr0/8EzY7q6 1OCmMCQZWwFBCGkFs2ApYRbjE9iiLA== =/zI2 -----END PGP SIGNATURE----- --=-Z0YWBLs7XjWpsM7KNZIN--