From ec93dd99f5924b7741a4b3c2c1fab961a213d519 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Thu, 8 Jan 2015 15:34:42 +0000 Subject: Don't convert package names to lower case This is redundant. --- baserockimport/exts/python.to_lorry | 8 ++++---- 1 file 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): -- cgit v1.2.1