mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +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:
@@ -95,6 +95,8 @@ python do_package_check_version_mismatch() {
|
|||||||
version = version[1:]
|
version = version[1:]
|
||||||
if version.endswith(")") and "(" not in version:
|
if version.endswith(")") and "(" not in version:
|
||||||
version = version[:-1]
|
version = version[:-1]
|
||||||
|
if not version.endswith(")") and "(" in version:
|
||||||
|
version = version.split('(')[0]
|
||||||
# handle extra version info
|
# handle extra version info
|
||||||
version = version + match.group("extra") + match.group("extra2")
|
version = version + match.group("extra") + match.group("extra2")
|
||||||
possible_versions.append(version)
|
possible_versions.append(version)
|
||||||
|
|||||||
Reference in New Issue
Block a user