diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-26 16:31:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-29 23:07:13 +0000 |
commit | f0627490711f29f0e308a0afc4fc4f8e54f58dec (patch) | |
tree | f49726d00a0643813151df56f386efa4665be926 /meta/lib/oe/distro_check.py | |
parent | 1dbcdfcdf8dd367b0b0440ba8ea7b79ac85a1a37 (diff) | |
download | poky-f0627490711f29f0e308a0afc4fc4f8e54f58dec.tar.gz |
sanity/lib: Replace usage of LooseVersion() with bb.utils.vercmp_string_op()
distutils is going away and we have functionality in bitbake which can
handle these comparisions so switch to the bb.utils function.
(From OE-Core rev: fe624b520e6c75e16a8f394785ab0216341402f9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/distro_check.py')
-rw-r--r-- | meta/lib/oe/distro_check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/distro_check.py b/meta/lib/oe/distro_check.py index 88e46c354d..4b2a9bec01 100644 --- a/meta/lib/oe/distro_check.py +++ b/meta/lib/oe/distro_check.py | |||
@@ -26,7 +26,7 @@ def find_latest_numeric_release(url, d): | |||
26 | maxstr="" | 26 | maxstr="" |
27 | for link in get_links_from_url(url, d): | 27 | for link in get_links_from_url(url, d): |
28 | try: | 28 | try: |
29 | # TODO use LooseVersion | 29 | # TODO use bb.utils.vercmp_string_op() |
30 | release = float(link) | 30 | release = float(link) |
31 | except: | 31 | except: |
32 | release = 0 | 32 | release = 0 |