summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-01-08 15:34:42 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-01-12 11:57:46 +0000
commitec93dd99f5924b7741a4b3c2c1fab961a213d519 (patch)
tree643b2d01f2309968ed1c75d7bdb870e3172e1a68
parentecf6dbb587b676405809f26657be4f2b5d8a55b7 (diff)
downloadimport-ec93dd99f5924b7741a4b3c2c1fab961a213d519.tar.gz
Don't convert package names to lower case
This is redundant.
-rwxr-xr-xbaserockimport/exts/python.to_lorry8
1 files changed, 4 insertions, 4 deletions
diff --git a/baserockimport/exts/python.to_lorry b/baserockimport/exts/python.to_lorry
index fdbd04a..3f0a463 100755
--- a/baserockimport/exts/python.to_lorry
+++ b/baserockimport/exts/python.to_lorry
@@ -110,12 +110,12 @@ def get_compression(url):
# Assumption: url passed to this function must have a 'standard' tar extension
def make_tarball_lorry(lorry_prefix, package_name, url):
- name = '%s/%s' % (lorry_prefix, package_name.lower())
+ name = '%s/%s' % (lorry_prefix, package_name)
# TODO: shouldn't have 'x-products-python' field hardcoded here either
lorry = {'type': 'tarball',
'url': url,
- 'x-products-python': [package_name.lower()]}
+ 'x-products-python': [package_name]}
compression = get_compression(url)
if compression:
lorry['compression'] = compression
@@ -183,13 +183,13 @@ def generate_tarball_lorry(lorry_prefix, client, requirement):
return make_tarball_lorry(lorry_prefix, requirement.project_name, url)
def str_repo_lorry(lorry_prefix, package_name, repo_type, url):
- name = '%s/%s' % (lorry_prefix, package_name.lower())
+ name = '%s/%s' % (lorry_prefix, package_name)
# TODO: this products field 'x-products-python'
# probably shouldn't be hardcoded here
return json.dumps({name: {'type': repo_type,
'url': url,
- 'x-products-python': [package_name.lower()]}},
+ 'x-products-python': [package_name]}},
indent=4, sort_keys=True)
class PythonLorryExtension(ImportExtension):