lib/berkshelf/resolver.rb in berkshelf-1.1.6 vs lib/berkshelf/resolver.rb in berkshelf-1.2.0.rc1
- old
+ new
@@ -1,7 +1,7 @@
module Berkshelf
- # @author Jamie Winsor <jamie@vialstudios.com>
+ # @author Jamie Winsor <reset@riotgames.com>
class Resolver
extend Forwardable
attr_reader :graph
@@ -20,11 +20,13 @@
# later in the iterator.
Array(options[:sources]).each do |source|
add_source(source, false)
end
- Array(options[:sources]).each do |source|
- add_source_dependencies(source)
+ unless options[:skip_dependencies]
+ Array(options[:sources]).each do |source|
+ add_source_dependencies(source)
+ end
end
end
# Add the given source to the collection of sources for this instance
# of Resolver. By default the dependencies of the given source will also