Eric Ball 97ad297610 Fix: Avoid LegacyVersion casting due to hyphens
Plugins are no longer following semantic versioning, and frequently
include additional versioning information.

pkg_resources.parse_version generally handles this well, but some
versions with a hyphen will return a LegacyVersion object rather than
a Version object, causing it to always compare as lower than any
Version object.

Simply replacing any '-' with '+' fixes this issue, and does not
materially change the versioning.

Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I5ad949d688ce7ebd0d183d69f4ce87b35343357f
2022-04-12 11:21:49 -07:00
..
2020-08-31 10:54:19 -04:00
2012-08-10 16:00:42 +00:00
2018-06-19 23:25:43 +01:00
2020-08-31 10:54:19 -04:00
2019-12-10 09:52:40 +01:00
2020-08-31 10:54:19 -04:00