]> code.ossystems Code Review - openembedded-core.git/commit
cve_check: add CVE_VERSION_SUFFIX to indicate suffix in versioning
authorLee Chee Yang <chee.yang.lee@intel.com>
Fri, 29 Jan 2021 03:51:15 +0000 (11:51 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 30 Jan 2021 10:38:49 +0000 (10:38 +0000)
commit5dfd5ad5144708b474ef31eaa89a846c57be8ac0
tree9e40a44aa3ca920d8790c4346072d0fbb6d44821
parentc5a6cc4146402620851e2a1f2b01d69989150ba2
cve_check: add CVE_VERSION_SUFFIX to indicate suffix in versioning

add CVE_VERSION_SUFFIX to indicate the version suffix type, currently
works in two value, "alphabetical" if the version string uses single
alphabetical character suffix as incremental release, blank to not
consider the unidentified suffixes. This can be expand when more suffix
pattern identified.

refactor cve_check.Version class to use functools and add parameter to
handle suffix condition.

Also update testcases to cover new changes.

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass
meta/lib/oe/cve_check.py
meta/lib/oeqa/selftest/cases/cve_check.py