summaryrefslogtreecommitdiff
path: root/exts/pip_find_deps.py
diff options
context:
space:
mode:
Diffstat (limited to 'exts/pip_find_deps.py')
-rwxr-xr-xexts/pip_find_deps.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/exts/pip_find_deps.py b/exts/pip_find_deps.py
index fd7533c..1af1ff0 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -177,9 +177,9 @@ def check_eqs(dep, version):
dep.conflicts.append((('==', dep.absolute), ('==', version)))
elif version in dep.excludes:
dep.conflicts.append((('!=', version), ('==', version)))
- elif version > dep.less_than:
+ elif dep.less_than < version:
dep.conflicts.append((dep.less_than.spec, ('==', version)))
- elif version < dep.greater_than:
+ elif dep.greater_than > version:
dep.conflicts.append((dep.greater_than.spec, ('==', version)))
def check_lt(dep, version, inclusive=False):