diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-22 15:34:29 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-22 15:34:29 +0100 |
commit | c42ae5bf25c4e938794844590fb5e1be2177844b (patch) | |
tree | 3fe77206da5bf5e229c2b1f9158851394f31c077 /import/rubygems.to_lorry | |
parent | aba8e7c28dec040fb26bc42c4fcc19b5bfbacc71 (diff) | |
download | morph-c42ae5bf25c4e938794844590fb5e1be2177844b.tar.gz |
import: Put all lorries for rubygems into a single .lorry file
This is what we do for Python packages already.
Diffstat (limited to 'import/rubygems.to_lorry')
-rwxr-xr-x | import/rubygems.to_lorry | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/import/rubygems.to_lorry b/import/rubygems.to_lorry index cd83e33b..898f0514 100755 --- a/import/rubygems.to_lorry +++ b/import/rubygems.to_lorry @@ -69,6 +69,7 @@ class RubyGemLorryGenerator(ImportExtension): with open('rubygems.yaml', 'r') as f: local_data = yaml.load(f.read()) + self.lorry_prefix = local_data['lorry-prefix'] self.known_source_uris = local_data['known-source-uris'] logging.debug( @@ -139,12 +140,13 @@ class RubyGemLorryGenerator(ImportExtension): logging.info('Got URL <%s> for %s', gem_source_url, gem_name) project_name = self.project_name_from_repo(gem_source_url) + lorry_name = self.lorry_prefix + project_name # One repo may produce multiple Gems. It's up to the caller to merge # multiple .lorry files that get generated for the same repo. lorry = { - project_name: { + lorry_name: { 'type': 'git', 'url': gem_source_url, 'x-products-rubygems': [gem_name] |