Skip to content
Snippets Groups Projects
Commit 555b9d14 authored by Charlie Sharpsteen's avatar Charlie Sharpsteen
Browse files

formula_installer.rb: Call link before check_PATH

Otherwise, for formula that making the very first install into `sbin`, the
following line will fail with a critical error:

    bin = (HOMEBREW_PREFIX/bin.basename).realpath.to_s

Because `sbin` will not exist until after `link` runs.

This isn't very clean as it moves `check_PATH` away from the other checks in
`caveats`, but I couldn't think of a better hotfix that did not require a bit
of code shuffling and re-writing.
parent 5790935b
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,6 @@ class FormulaInstaller
ohai 'Caveats', f.keg_only_text
@show_summary_heading = true
else
check_PATH
check_manpages
check_infopages
check_jars
......@@ -77,7 +76,10 @@ class FormulaInstaller
def finish
ohai 'Finishing up' if ARGV.verbose?
link unless f.keg_only?
unless f.keg_only?
link
check_PATH
end
fix_install_names
ohai "Summary" if ARGV.verbose? or show_summary_heading
......
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