[Buildroot] [v4 08/13] pkg-download: support new subdir for mirrors

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Apr 2 12:13:27 UTC 2018


Hello,

On Mon,  2 Apr 2018 10:14:29 +0200, Maxime Hadjinlian wrote:
> Since we introduced subdirectory to the DL_DIR, we need to support them
> in the PRIMARY and BACKUP mirror as they evolve to the new tree
> structure.
> 
> We check first the new URI (with the subdir), and in case of failure, we
> go check without.
> By checking both URIs, we ensure that old mirror are usable.
> 
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>

Shouldn't this be squashed into the previous patch ?

Indeed, as soon as PATCH 07/13 is merged, the sources.buildroot.net
mirror will start storing new tarballs in sources.buildroot.net/<pkg>/
and not directly in sources.buildroot.net/. So we should at the same
time start storing tarballs in the per-package sub-folder *and* start
querying primary/backup site inside their sub-folder.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list