From 72a5c58af38af09191bba5b28afc853d33f8ae79 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Thu, 4 Dec 2014 20:24:41 +0000 Subject: Log the switcheroo --- exts/pip.to_lorry | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'] -- cgit v1.2.1