diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-10-16 20:06:51 +0100 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-11-04 12:40:56 +0000 |
commit | fd41f5736c8bc67b815a53e843c693247f25102f (patch) | |
tree | 7b3168fe94a2c52dfb7bdfaef2fd330d37f98c4f | |
parent | f146309c1905d741976b368cea79f19e9607cea3 (diff) | |
download | import-fd41f5736c8bc67b815a53e843c693247f25102f.tar.gz |
Another TODO
-rwxr-xr-x | import/pip_lorry.py | 2 |
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): |