poky/bitbake/lib/bb/tests/fetch-testdata
Alexander Kanavin 6257744d79 bitbake: fetch2/wget.py: correctly match versioned directories
When obtaining latest upstream versions, the code needs
to check if the existing tarball is in a versioned directory
(e.g. component-name/x.y/component-name-x.y.z.tar.gz) and
if it is, it needs to first obtain the list of all
such versioned directories and then check all of them by going
one step up in the directory hierarchy.

Existing code was returning a correct match when the component
name did not have numbers, e.g. a check on 'source/epiphany/43/'
would return 43, but was stopping too soon when the component
name itself had numbers ('source/libxml2/2.10/' would return libxml2).

This change ensures the last match is taken instead of the first.

Also, adjust the fetcher tests to check that versioned directories
are correctly traversed in this case (e.g. the step to go one level
up is taken and a new tarball is discovered in a different versioned
directory).

(Bitbake rev: b6601be22c6d776327acdcd1fa931400f41ac786)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-12-11 16:33:19 +00:00
..
apple/cups bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
debian/pool/main bitbake: fetch: add a test for version check where compression changes 2021-12-09 10:56:49 +00:00
downloads/enchant/1.6.0 bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
files bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
pub/linux/utils/util-linux bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
releases bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
software bitbake: fetch2/wget.py: correctly match versioned directories 2022-12-11 16:33:19 +00:00