From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Mon, 2 Apr 2018 14:29:49 +0200 Subject: [Buildroot] [v4 08/13] pkg-download: support new subdir for mirrors In-Reply-To: <20180402141327.328775df@windsurf> References: <20180402081434.4411-1-maxime.hadjinlian@gmail.com> <20180402081434.4411-8-maxime.hadjinlian@gmail.com> <20180402141327.328775df@windsurf> Message-ID: <20180402122949.GJ3625@scaer> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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 > > Reviewed-by: "Yann E. MORIN" > 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// > 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. | '------------------------------^-------^------------------^--------------------'