Browse files

properly match exact vulnerability matches; add changelog

  • Loading branch information...
1 parent 902aa53 commit cb46151a08e9d3cbdff6ebaca237da6b8cb2e627 @jschauma committed Jan 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/yvc.py
View
4 lib/yvc.py
@@ -475,7 +475,7 @@ def versionCompare(v1, op, v2):
Arguments:
v1 -- a string or Version object
- op -- operator, indicating type of comparison (">", ">=", "<", "<=")
+ op -- operator, indicating type of comparison (">", ">=", "<", "<=", "=")
v2 -- a string or Version object
Returns:
@@ -493,7 +493,7 @@ def versionCompare(v1, op, v2):
return (v1 < v2)
elif (op == "<="):
return (v1 <= v2)
- elif (op == "=="):
+ elif (op == "="):
return (v1 == v2)
else:
# shouldn't happen

0 comments on commit cb46151

Please sign in to comment.