diff options
| author | Jack Nagel | 2013-12-02 12:44:28 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-02 12:49:58 -0600 |
| commit | 690474dd3ba39319a4009506c22f269610d6bff2 (patch) | |
| tree | 80acbfea4e21fab2a9ab79dc6ff11da338b32966 /Library | |
| parent | b5f83e60f9652465822a1723a19b3fa92a38c6f2 (diff) | |
| download | brew-690474dd3ba39319a4009506c22f269610d6bff2.tar.bz2 | |
Extract compute_and_install_dependencies
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 5f43919c7..4aa66f407 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -102,11 +102,7 @@ class FormulaInstaller check_conflicts - unless ignore_deps - perform_readline_hack - check_requirements - install_dependencies - end + compute_and_install_dependencies unless ignore_deps if ARGV.build_bottle? && (arch = ARGV.bottle_arch) && !Hardware::CPU.optimization_flags.include?(arch) raise "Unrecognized architecture for --bottle-arch: #{arch}" @@ -141,10 +137,7 @@ class FormulaInstaller build_bottle_preinstall if ARGV.build_bottle? unless @poured_bottle - if @pour_failed and not ignore_deps - check_requirements - install_dependencies - end + compute_and_install_dependencies if @pour_failed and not ignore_deps build clean end @@ -179,6 +172,12 @@ class FormulaInstaller raise FormulaConflictError.new(f, conflicts) unless conflicts.empty? end + def compute_and_install_dependencies + perform_readline_hack + check_requirements + install_dependencies + end + def check_requirements unsatisfied = ARGV.filter_for_dependencies do f.recursive_requirements do |dependent, req| |
