Don't walk tap twice just to get the formula path again, it's slow

This commit is contained in:
Jack Nagel 2014-04-14 19:07:26 -05:00
parent 621bb0049f
commit 63d0a5bf75

View File

@ -16,7 +16,7 @@ else
tap = Pathname("#{HOMEBREW_LIBRARY}/Taps/#{tap_dir}")
raise "#{tap} does not exist!" unless tap.exist?
tap.find_formula do |f|
formulae << (tap/f).tap_ref
formulae << tap/f
end
end