Remove last use of deprecated Formula#recursive_deps
Fixes Homebrew/homebrew#19107.
This commit is contained in:
parent
bd4aaac96b
commit
136aa4c6f4
@ -19,7 +19,7 @@ module Homebrew extend self
|
||||
puts "'v8'.f # => instance of the Ack formula"
|
||||
puts ":hub.f.installed?"
|
||||
puts ":lua.f.methods - 1.methods"
|
||||
puts ":mpd.f.recursive_deps.reject{|f| f.installed? }"
|
||||
puts ":mpd.f.recursive_dependencies.reject(&:installed?)"
|
||||
else
|
||||
ohai "Interactive Homebrew Shell"
|
||||
puts "Example commands available with: brew irb --help"
|
||||
|
||||
@ -100,21 +100,6 @@ class Formula
|
||||
end
|
||||
end
|
||||
|
||||
# These methods return lists of Formula objects.
|
||||
# They are eprecated in favor of Dependency::expand_dependencies
|
||||
# and Formula#recursive_dependencies, which return lists of
|
||||
# Dependency objects instead.
|
||||
def self.expand_deps f
|
||||
f.deps.map do |dep|
|
||||
f_dep = Formula.factory dep.to_s
|
||||
expand_deps(f_dep) << f_dep
|
||||
end
|
||||
end
|
||||
|
||||
def recursive_deps
|
||||
Formula.expand_deps(self).flatten.uniq
|
||||
end
|
||||
|
||||
def self.all
|
||||
opoo "Formula.all is deprecated, use Formula.map instead"
|
||||
map
|
||||
|
||||
@ -81,7 +81,7 @@ class FormulaInstaller
|
||||
unless ignore_deps
|
||||
# HACK: If readline is present in the dependency tree, it will clash
|
||||
# with the stdlib's Readline module when the debugger is loaded
|
||||
if f.recursive_deps.any? { |d| d.name == "readline" } and ARGV.debug?
|
||||
if f.recursive_dependencies.any? { |d| d.name == "readline" } and ARGV.debug?
|
||||
ENV['HOMEBREW_NO_READLINE'] = '1'
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user