Skip to content
Snippets Groups Projects
Commit a3bacf12 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1648 from MikeMcQuaid/remove-dependency-installer

formula_installer: remove dependency_installer.
parents 7258557a bf9da253
No related branches found
No related tags found
No related merge requests found
......@@ -60,10 +60,6 @@ class FormulaInstaller
@pour_failed = false
end
def skip_deps_check?
ignore_deps?
end
# When no build tools are available and build flags are passed through ARGV,
# it's necessary to interrupt the user before any sort of installation
# can proceed. Only invoked when the user has no developer tools.
......@@ -125,7 +121,7 @@ class FormulaInstaller
def prelude
Tab.clear_cache
verify_deps_exist unless skip_deps_check?
verify_deps_exist unless ignore_deps?
lock
check_install_sanity
end
......@@ -147,7 +143,7 @@ class FormulaInstaller
def check_install_sanity
raise FormulaInstallationAlreadyAttemptedError, formula if @@attempted.include?(formula)
return if skip_deps_check?
return if ignore_deps?
recursive_deps = formula.recursive_dependencies
unlinked_deps = recursive_deps.map(&:to_formula).select do |dep|
......@@ -197,7 +193,7 @@ class FormulaInstaller
raise BuildToolsError, [formula]
end
unless skip_deps_check?
unless ignore_deps?
deps = compute_dependencies
check_dependencies_bottled(deps) if pour_bottle? && !DevelopmentTools.installed?
install_dependencies(deps)
......@@ -250,7 +246,7 @@ class FormulaInstaller
onoe e.message
opoo "Bottle installation failed: building from source."
raise BuildToolsError, [formula] unless DevelopmentTools.installed?
compute_and_install_dependencies unless skip_deps_check?
compute_and_install_dependencies unless ignore_deps?
else
@poured_bottle = true
end
......@@ -442,12 +438,6 @@ class FormulaInstaller
@show_header = true unless deps.empty?
end
class DependencyInstaller < FormulaInstaller
def skip_deps_check?
true
end
end
def install_dependency(dep, inherited_options)
df = dep.to_formula
tab = Tab.for_formula(df)
......@@ -463,7 +453,7 @@ class FormulaInstaller
installed_keg.rename(tmp_keg)
end
fi = DependencyInstaller.new(df)
fi = FormulaInstaller.new(df)
fi.options |= tab.used_options
fi.options |= Tab.remap_deprecated_options(df.deprecated_options, dep.options)
fi.options |= inherited_options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment