lib/teapot/controller/fetch.rb in teapot-0.9.10 vs lib/teapot/controller/fetch.rb in teapot-1.0.0.pre.rc1
- old
+ new
@@ -26,10 +26,10 @@
def fetch
resolved = Set.new
configuration = context.configuration
unresolved = context.unresolved(configuration.packages)
tries = 0
-
+
while tries < @options[:maximum_fetch_depth]
configuration.packages.each do |package|
next if resolved.include? package
fetch_package(context, configuration, package)