install: set installed_{as_dependency,on_request}.

This commit is contained in:
Mike McQuaid 2017-01-09 21:09:31 +00:00
parent 16293c0a68
commit ee43c09f7a

View File

@ -184,6 +184,14 @@ module Homebrew
# FormulaInstaller will handle this case. # FormulaInstaller will handle this case.
formulae << f formulae << f
end end
# Even if we don't install this formula mark it as no longer just
# installed as a dependency.
next unless f.opt_prefix.directory?
keg = Keg.new(f.opt_prefix.resolved_path)
tab = Tab.for_keg(keg)
tab.installed_on_request = true
tab.write
end end
perform_preinstall_checks perform_preinstall_checks