Add ARGV.ignore_deps?
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
3081e69783
commit
8a21bd52d5
@ -29,7 +29,7 @@ module Homebrew extend self
|
||||
end
|
||||
end
|
||||
|
||||
unless ARGV.include? '--ignore-dependencies'
|
||||
unless ARGV.ignore_deps?
|
||||
# Expand the outdated list to include outdated dependencies then sort and
|
||||
# reduce such that dependencies are installed first and installation is not
|
||||
# attempted twice. Sorting is implicit the way `recursive_deps` returns
|
||||
|
||||
@ -89,6 +89,10 @@ module HomebrewArgvExtension
|
||||
include?('--dry-run') || switch?('n')
|
||||
end
|
||||
|
||||
def ignore_deps?
|
||||
include? '--ignore-dependencies'
|
||||
end
|
||||
|
||||
def build_head?
|
||||
include? '--HEAD'
|
||||
end
|
||||
|
||||
@ -16,7 +16,7 @@ class FormulaInstaller
|
||||
@f = ff
|
||||
@tab = tab
|
||||
@show_header = true
|
||||
@ignore_deps = ARGV.include? '--ignore-dependencies' || ARGV.interactive?
|
||||
@ignore_deps = ARGV.ignore_deps? || ARGV.interactive?
|
||||
@install_bottle = install_bottle? ff
|
||||
|
||||
check_install_sanity
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user