File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -268,9 +268,13 @@ def from_dict(cls, affected_pkg: dict):
268268 return
269269
270270 fixed_version = affected_pkg ["fixed_version" ]
271- if fixed_version and affected_version_range :
272- # TODO: revisit after https://github.com/nexB/univers/issues/10
273- fixed_version = affected_version_range .version_class (fixed_version )
271+ if fixed_version :
272+ if affected_version_range :
273+ # TODO: revisit after https://github.com/nexB/univers/issues/10
274+ fixed_version = affected_version_range .version_class (fixed_version )
275+ elif package .type in RANGE_CLASS_BY_SCHEMES :
276+ vrc = RANGE_CLASS_BY_SCHEMES [package .type ]
277+ fixed_version = vrc .version_class (fixed_version )
274278
275279 if not fixed_version and not affected_version_range :
276280 logger .error (
You can’t perform that action at this time.
0 commit comments