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 E6A0A138334 for ; Sat, 19 Oct 2019 13:31:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD803E08ED; Sat, 19 Oct 2019 13:31:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 87534E08DA for ; Sat, 19 Oct 2019 13:31:11 +0000 (UTC) Received: from gentoo.org (unknown [IPv6:2001:980:3ff0:64:61dd:7abd:93fa:9c04]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: grobian) by smtp.gentoo.org (Postfix) with ESMTPSA id B322634BF58 for ; Sat, 19 Oct 2019 13:31:09 +0000 (UTC) Date: Sat, 19 Oct 2019 15:31:02 +0200 From: Fabian Groffen To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New distfile mirror layout Message-ID: <20191019133102.GL19098@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <4c7465824f1fb69924c826f6bbe3ee73afa08ec8.camel@gentoo.org> 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <4c7465824f1fb69924c826f6bbe3ee73afa08ec8.camel@gentoo.org> User-Agent: Mutt/1.12.2 (Darwin 17.7.0, VIM - Vi IMproved 8.1) Organization: Gentoo Foundation, Inc. X-Archives-Salt: 55a34879-ad10-4180-9d23-92d0d1bed194 X-Archives-Hash: 88a6a4ca69258778c3ccbe4bf8e0ecff --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, 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. 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? Thanks, Fabian --=20 Fabian Groffen Gentoo on a different level --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEgMagmo0zMCwdLAapPcEmvEV8hJAFAl2rEBQACgkQPcEmvEV8 hJAOyQf/ZpCfPXHwByixriVB+X7j2Pc511D9ig73rsMo7mqmoDBEgx15VND2arCZ vs3zhRgxr6n8BrcITrK/Rk7YofoV67FunjyvSHhdJ60PSI/5nsBQTH92mta8GL0o GBLujUdVF2TxP8PBZjNIdvx2H0oFtk8Tb3X1EjVVrmoSoDv1o0uPaKE7j7kQW61b shITmpsRpoWJ8Oqvnm5dGX5xh0v+crMtIXp8ffx7t+BgBtsuYNSIwvjhJkPPyC4j X9X7uiWOgx5SJjxYYL8sY5azO32Hk8a/XY/ZEQcYFBADrqIcyhIE+g6QZbZR7tej 9S+BrHsaTBmY+dO4VnY1NF5jIhoEBQ== =pBZE -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--