AppThreat / vulnerability-db

Vulnerability database and package search for sources such as Linux, OSV, NVD, GitHub and npm. Powered by sqlite, CVE 5.0, purl, and vers.
MIT License
93 stars 22 forks source link

[v6] Test version matching against univers #58

Open prabhu opened 1 year ago

prabhu commented 1 year ago

https://github.com/nexB/univers

prabhu commented 7 months ago

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