vulnerability-db icon indicating copy to clipboard operation
vulnerability-db copied to clipboard

[v6] Test version matching against univers

Open prabhu opened this issue 1 year ago • 1 comments

https://github.com/nexB/univers

prabhu avatar Jul 27 '23 17:07 prabhu

Looks like univers is doing well.

>>> from univers.versions import * 
>>> a=DebianVersion("1.1.0j-1~deb9u1")
>>> b=DebianVersion("1.1.0f-3+deb9u1")
>>> a>b
True
>>> b>a
False
>>> c = DebianVersion("20210119~20.04.2")
>>> d = DebianVersion("20211016ubuntu0.20.04.1")
>>> c>d
False
>>> d>c
True

prabhu avatar Feb 08 '24 11:02 prabhu