summaryrefslogtreecommitdiff
path: root/exts/pip.to_lorry
diff options
context:
space:
mode:
Diffstat (limited to 'exts/pip.to_lorry')
-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']