Add custom sources if not included

This commit is contained in:
Chris Roberts 2016-11-11 14:33:26 -08:00
parent 6e40d46c50
commit d8455c0a9a
1 changed files with 5 additions and 0 deletions

View File

@ -238,6 +238,11 @@ module Vagrant
if plugin_source = info.delete("local_source")
installer_set.add_local(plugin_source.spec.name, plugin_source.spec, plugin_source)
end
Array(info["sources"]).each do |source|
if !Gem.sources.include?(source)
Gem.sources << source
end
end
Gem::Dependency.new(name, gem_version)
end