Don't query online for plain brew search

This commit is contained in:
Max Howell 2012-03-20 16:03:27 +00:00
parent 9c28138889
commit 17bdfb1d38

View File

@ -28,6 +28,7 @@ module Homebrew extend self
puts msg
end
if query
$found = search_results.length
puts_columns search_tap "adamv", "alt", rx
puts_columns search_tap "josegonzalez", "php", rx
@ -40,6 +41,7 @@ module Homebrew extend self
end
end
end
end
def search_tap user, repo, rx
return [] if (HOMEBREW_LIBRARY/"Taps/#{user.downcase}-#{repo.downcase}").directory?