Skip to content
This repository has been archived by the owner on Apr 18, 2019. It is now read-only.

Commit

Permalink
properly match exact vulnerability matches; add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jschauma committed Jan 28, 2011
1 parent 902aa53 commit cb46151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/yvc.py
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit cb46151

Please sign in to comment.