summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-10-16 20:06:51 +0100
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-11-04 12:40:56 +0000
commitfd41f5736c8bc67b815a53e843c693247f25102f (patch)
tree7b3168fe94a2c52dfb7bdfaef2fd330d37f98c4f
parentf146309c1905d741976b368cea79f19e9607cea3 (diff)
downloadimport-fd41f5736c8bc67b815a53e843c693247f25102f.tar.gz
Another TODO
-rwxr-xr-ximport/pip_lorry.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/import/pip_lorry.py b/import/pip_lorry.py
index 9358ce2..3083ee6 100755
--- a/import/pip_lorry.py
+++ b/import/pip_lorry.py
@@ -124,6 +124,8 @@ def specs_satisfied(version, specs):
'<=' : lambda x, y: x <= y, '>=' : lambda x, y: x >= y,
'<': lambda x, y: x < y, '>' : lambda x, y: x > y}
+ TODO: don't just key error if we don't recognise the op
+
return all([opmap[op](version, sv) for (op, sv) in specs])
def generate_tarball_lorry(requirement):