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

Yann E. MORIN yann.morin.1998 at free.fr
Mon Apr 2 12:29:49 UTC 2018


Thomas, Maxime, All,

On 2018-04-02 14:13 +0200, Thomas Petazzoni spake thusly:
> 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 ?

Or rather, the order should be inverted: this patch first, then the
previous one.

That way, we start with looking in sub-dirs (we do not yet exist), then
fallback to plain dir. Then sub-dirs are introduced and pushed to the
mirror.

Regards,
Yann E. MORIN.

> 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
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list