install plist before linking

If linking fails,  won't try to re-install the plist.

Closes Homebrew/homebrew#20843.
This commit is contained in:
Adam Vandenberg 2013-06-30 11:16:53 -07:00
parent b40615d66a
commit 5437a480eb

View File

@ -246,6 +246,8 @@ class FormulaInstaller
def finish
ohai 'Finishing up' if ARGV.verbose?
install_plist
if f.keg_only?
begin
Keg.new(f.prefix).optlink
@ -258,7 +260,6 @@ class FormulaInstaller
check_PATH unless f.keg_only?
end
install_plist
fix_install_names
ohai "Summary" if ARGV.verbose? or show_summary_heading