Don't query online for plain brew search
This commit is contained in:
parent
9c28138889
commit
17bdfb1d38
@ -28,15 +28,17 @@ module Homebrew extend self
|
|||||||
puts msg
|
puts msg
|
||||||
end
|
end
|
||||||
|
|
||||||
$found = search_results.length
|
if query
|
||||||
puts_columns search_tap "adamv", "alt", rx
|
$found = search_results.length
|
||||||
puts_columns search_tap "josegonzalez", "php", rx
|
puts_columns search_tap "adamv", "alt", rx
|
||||||
puts_columns search_tap "Homebrew", "versions", rx
|
puts_columns search_tap "josegonzalez", "php", rx
|
||||||
puts_columns search_tap "Homebrew", "dupes", rx
|
puts_columns search_tap "Homebrew", "versions", rx
|
||||||
|
puts_columns search_tap "Homebrew", "dupes", rx
|
||||||
|
|
||||||
if $found == 0 and not blacklisted? query
|
if $found == 0 and not blacklisted? query
|
||||||
puts "No formula found for \"#{query}\". Searching open pull requests..."
|
puts "No formula found for \"#{query}\". Searching open pull requests..."
|
||||||
GitHub.find_pull_requests(rx) { |pull| puts pull }
|
GitHub.find_pull_requests(rx) { |pull| puts pull }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user