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