diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2024-02-29 10:59:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-01 09:31:10 +0000 |
commit | 140edb96aa4725e5aabc19f7c4a3691e2693aa53 (patch) | |
tree | 5eca4ae10a6c5a4a7344683ae5fcb0d2ef4c3f94 /meta/recipes-devtools | |
parent | deef6a87b564a205f90cafcd7982d78caac008c3 (diff) | |
download | poky-140edb96aa4725e5aabc19f7c4a3691e2693aa53.tar.gz |
waf: Improve version parsing to avoid failing on warnings
waf uses an inline tar file extracted by the tarfile module. The tarfile
module may print a warning when used with default 'filter' argument[0].
When called to get the version, the first time after unpack, the output
may look like:
# output from lower modules (e.g: warnings from tarfile, ...)
waf X.Y.Z ...
This patch makes the version parsing more precise by looking at the
first line matching "waf ".
[0]: https://docs.python.org/3.12/library/tarfile.html#extraction-filters
(From OE-Core rev: 643b799a0c11d82907dd82991c19b003fe20a8b0)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
0 files changed, 0 insertions, 0 deletions