summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-10 16:56:28 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-10 16:56:28 +0000
commit1362ae89ee075e13d5a0b12023a5e7ad61fb4ab7 (patch)
tree5d5917bb72f102f5ce2809d39431111a6f0f9734
parent30def38980b27e6fc0822777bee3ef7ea015c3cb (diff)
downloadimport-1362ae89ee075e13d5a0b12023a5e7ad61fb4ab7.tar.gz
fix comp order so that we call Bound comp funcs
-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):