mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
check-version-mismatch.bbclass: avoid single '(' in version output
Avoid a single '(' in version. For example, we want to extract the
'2.30.31' instead of '2.30.31(2' for lvm2.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
05def1ad00
commit
095d61d2e2
|
|
@ -95,6 +95,8 @@ python do_package_check_version_mismatch() {
|
|||
version = version[1:]
|
||||
if version.endswith(")") and "(" not in version:
|
||||
version = version[:-1]
|
||||
if not version.endswith(")") and "(" in version:
|
||||
version = version.split('(')[0]
|
||||
# handle extra version info
|
||||
version = version + match.group("extra") + match.group("extra2")
|
||||
possible_versions.append(version)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user