diff options
| author | Jack Nagel | 2013-12-02 12:44:28 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-12-02 12:49:58 -0600 |
| commit | f0cea61ee688809ebdd6a84075e5f147e434365a (patch) | |
| tree | 69494c7ab914c1efd34030a27a5c20477fdd719d /Library | |
| parent | 2cfb03f85e084bcc3b0df076bb3c922a76232a8b (diff) | |
| download | homebrew-f0cea61ee688809ebdd6a84075e5f147e434365a.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| |
