aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-12-02 12:44:28 -0600
committerJack Nagel2013-12-02 12:49:58 -0600
commit690474dd3ba39319a4009506c22f269610d6bff2 (patch)
tree80acbfea4e21fab2a9ab79dc6ff11da338b32966 /Library
parentb5f83e60f9652465822a1723a19b3fa92a38c6f2 (diff)
downloadbrew-690474dd3ba39319a4009506c22f269610d6bff2.tar.bz2
Extract compute_and_install_dependencies
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb17
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|