Current code takes the first version found as "fixed-version".
That is not correct as it is almost always only the oldest backport.
Fix it by unconditionally shift the assigmnet of variable "fixed" so
that we take last instead of first version.
Cc: daniel.turull@ericsson.com
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
if not first_affected:
first_affected = v
- fixed = less_than
+ fixed = less_than
if base_version < v and v < next_version:
first_affected = v
- fixed = less_than
fixed_backport = less_than
return first_affected, fixed, fixed_backport