doctor: run slowest checks last

This commit is contained in:
Jack Nagel 2012-12-21 15:13:36 -06:00
parent 43108e42d9
commit a64e9e542f

View File

@ -1020,7 +1020,7 @@ module Homebrew extend self
checks.methods.sort << "check_for_linked_keg_only_brews" << "check_for_outdated_homebrew" checks.methods.sort << "check_for_linked_keg_only_brews" << "check_for_outdated_homebrew"
else else
ARGV.named ARGV.named
end.select{ |method| method =~ /^check_/ }.uniq end.select{ |method| method =~ /^check_/ }.reverse.uniq.reverse
methods.each do |method| methods.each do |method|
out = checks.send(method) out = checks.send(method)