diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2025-04-17 01:05:10 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-19 14:36:04 -0700 |
| commit | 095d61d2e259c483c048b6d4d73a85f56dc7a9e3 (patch) | |
| tree | 908c1c9182eaffdcae8b284c843e745f1aa51691 | |
| parent | 05def1ad006abfe61638235bdffccb5defdf330f (diff) | |
| download | meta-openembedded-095d61d2e259c483c048b6d4d73a85f56dc7a9e3.tar.gz | |
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>
| -rw-r--r-- | meta-oe/classes/check-version-mismatch.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/classes/check-version-mismatch.bbclass b/meta-oe/classes/check-version-mismatch.bbclass index 7b46151b03..7198895fed 100644 --- a/meta-oe/classes/check-version-mismatch.bbclass +++ b/meta-oe/classes/check-version-mismatch.bbclass | |||
| @@ -95,6 +95,8 @@ python do_package_check_version_mismatch() { | |||
| 95 | version = version[1:] | 95 | version = version[1:] |
| 96 | if version.endswith(")") and "(" not in version: | 96 | if version.endswith(")") and "(" not in version: |
| 97 | version = version[:-1] | 97 | version = version[:-1] |
| 98 | if not version.endswith(")") and "(" in version: | ||
| 99 | version = version.split('(')[0] | ||
| 98 | # handle extra version info | 100 | # handle extra version info |
| 99 | version = version + match.group("extra") + match.group("extra2") | 101 | version = version + match.group("extra") + match.group("extra2") |
| 100 | possible_versions.append(version) | 102 | possible_versions.append(version) |
