Skip to content

Usage bitbake fetcher latest_versionstring in distrodata_class

Aníbal Limón bitbake-devel openembedded-core poky 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12distrodata_class: checkpkg make usage of latest_versionstring methods in bitbake fetchermeta/classes/distrodata.bbclass+43 -4490 replies
2/12package_regex.inc: Update REGEX'es in order to find upstream versions correctlymeta-yocto/conf/distro/include/package_regex.inc+204 -1960 replies
3/12fetch2/wget.py: latest_versionstring create _init_regex method for have one place when regex'es are definedbitbake/lib/bb/fetch2/wget.py+10 -50 replies
4/12fetch2/wget.py: _init_regexes rename variables to be more consistent and move dirver_regex into itbitbake/lib/bb/fetch2/wget.py+18 -120 replies
5/12fetch/wget.php: latest version string only try to find latest directory when REGEX_URI isn't specified to avoid unnecessary processing and makes code easierbitbake/lib/bb/fetch2/wget.py+29 -260 replies
6/12fetch2/wget.py: latest_versionstring add package_custom_regex_compbitbake/lib/bb/fetch2/wget.py+11 -40 replies
7/12fetch2/wget.py: latest_versionstring improvments in searchingbitbake/lib/bb/fetch2/wget.py+23 -140 replies
8/12fetch/wget.py: latest_versionstring remove unnecessary usage for name in version comparisionbitbake/lib/bb/fetch2/wget.py+2 -20 replies
9/12fetch2/wget: latest_versionstring add support for search in RAW html linesbitbake/lib/bb/fetch2/wget.py+6 -10 replies
10/12fetch/wget.py: latest_versionstring remove newuri set because is previous setbitbake/lib/bb/fetch2/wget.py+0 -20 replies
11/12tests/fetch.py: Update wget latest_versionstring cups casebitbake/lib/bb/tests/fetch.py+1 -10 replies
12/12fetch2/wget.py: latest_versionstring clean improvments minorbitbake/lib/bb/fetch2/wget.py+2 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/12] Usage bitbake fetcher latest_versionstring in distrodata_class

Since Bitbake fetcher has latest_versionstring method that support search last version of package in upstream sites, distrodata class should use it instead of do itself,

Summary of changes,

distrodata_class: Re-implement upstream version detection using Bitbake fetcher methods. package_regex.inc: Update regex because Bitbake fetcher already provides support for search in HTML href's tags instead of RAW lines.
bitbake: Improvements in fetcher wget latest_versionstring method based on [1] and clean code.

Compatibility testing was made running distrodata class and the result files can be found at [1].

The code has DEPENDENCIES the Bitbake changes should be MERGE first then package_regex.inc and finally distrodata_class.

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=1813

The following changes since commit 0bc03af7ee6112fa0af0608b02f715ec8495e4ff:

maintainers.inc: update maintainers (2014-11-26 17:06:10 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib alimon/fetcher-distrodata
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=alimon/fetcher-distrodata

Aníbal Limón (12):
distrodata_class: checkpkg make usage of latest_versionstring methods
in bitbake fetcher
package_regex.inc: Update REGEX'es in order to find upstream versions
correctly
fetch2/wget.py: latest_versionstring create _init_regex method for
have one place when regex'es are defined
fetch2/wget.py: _init_regexes rename variables to be more consistent
and move dirver_regex into it
fetch/wget.php: latest version string only try to find latest
directory when REGEX_URI isn't specified to avoid unnecessary processing and makes code easier
fetch2/wget.py: latest_versionstring add package_custom_regex_comp fetch2/wget.py: latest_versionstring improvments in searching fetch/wget.py: latest_versionstring remove unnecessary usage for name
in version comparision
fetch2/wget: latest_versionstring add support for search in RAW html
lines
fetch/wget.py: latest_versionstring remove newuri set because is
previous set
tests/fetch.py: Update wget latest_versionstring cups case fetch2/wget.py: latest_versionstring clean improvments minor

 bitbake/lib/bb/fetch2/wget.py                    | 146 ++++---
 bitbake/lib/bb/tests/fetch.py                    |   2 +-
 meta-yocto/conf/distro/include/package_regex.inc | 400 +++++++++---------
 meta/classes/distrodata.bbclass                  | 492 ++---------------------
 4 files changed, 337 insertions(+), 703 deletions(-)
Signature · 1 line
1.9.1