summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-04 20:24:41 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-04 20:24:41 +0000
commit72a5c58af38af09191bba5b28afc853d33f8ae79 (patch)
treee3022a3c4bbecb97c1c5c357425261121dff9aa4
parentf9b08affeb1c20f72ba70b95ae0a55e2397d3278 (diff)
downloadimport-72a5c58af38af09191bba5b28afc853d33f8ae79.tar.gz
Log the switcheroo
-rwxr-xr-xexts/pip.to_lorry4
1 files changed, 3 insertions, 1 deletions
diff --git a/exts/pip.to_lorry b/exts/pip.to_lorry
index a92c66b..557b53e 100755
--- a/exts/pip.to_lorry
+++ b/exts/pip.to_lorry
@@ -203,7 +203,9 @@ def main():
# This is a bit of a hack to handle pypi package's case insensitivity
# TODO: do not overwrite the original name, create a new attribute
# hurray for this dynamic language! >.>
- req.project_name = name_or_closest(client, req.project_name)
+ new_proj_name = name_or_closest(client, req.project_name)
+ logging.debug('Treating %s as %s' % (req.project_name, new_proj_name))
+ req.project_name = new_proj_name
metadata = fetch_package_metadata(req.project_name)
info = metadata['info']