linux/cve-exclusion: do not shift first_affected

Stop shifting first_affected if backport is indicated. This does not
have effect on generated list, but makes the logic cleaner as it will
not shift it to "first affected on our branch" and also make it behave
like in defaultStatus==affected case.

Cc: daniel.turull@ericsson.com
(From OE-Core rev: dc1ecb69389dd79354084757ba6b9af0781afcc0)

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Marko 2025-04-27 11:43:02 +02:00 committed by Richard Purdie
parent d5b1922a69
commit 0b25d55bc0

View File

@ -69,7 +69,6 @@ def get_fixed_versions(cve_info, base_version):
first_affected = v
fixed = less_than
if base_version < v and v < next_version:
first_affected = v
fixed_backport = less_than
return first_affected, fixed, fixed_backport