summaryrefslogtreecommitdiff
path: root/baserockimport/exts/rubygems.to_chunk
diff options
context:
space:
mode:
Diffstat (limited to 'baserockimport/exts/rubygems.to_chunk')
-rwxr-xr-xbaserockimport/exts/rubygems.to_chunk8
1 files changed, 5 insertions, 3 deletions
diff --git a/baserockimport/exts/rubygems.to_chunk b/baserockimport/exts/rubygems.to_chunk
index c1a3e7c..1573d8b 100755
--- a/baserockimport/exts/rubygems.to_chunk
+++ b/baserockimport/exts/rubygems.to_chunk
@@ -154,9 +154,11 @@ class RubyGemChunkMorphologyGenerator < Importer::Base
"source code in #{source_dir_name}")
resolved_specs = Dir.chdir(source_dir_name) do
- # FIXME: we don't need to do this here, it'd be enough just to load
- # the given gemspec
- definition = create_bundler_definition_for_gemspec(gem_name)
+ # FIXME: resolving the specs for all the dependencies of the target gem
+ # isn't necessary here. In fact, just reading/executing the .gemspec
+ # would be enough, and would speed this program up and remove a lot of
+ # pointless network access to rubygems.org.
+ definition = create_bundler_definition_for_gemspec(gem_name, source_dir_name)
definition.resolve_remotely!
end