Add ARGV.ignore_deps?

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-08-18 18:12:12 -05:00
parent 3081e69783
commit 8a21bd52d5
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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