caveats: print .app caveats if installed to keg.

This commit is contained in:
Mike McQuaid 2014-01-18 21:58:01 +00:00
parent d8d76da55f
commit f4cd66a88f

View File

@ -13,6 +13,7 @@ class Caveats
caveats << zsh_completion_caveats
caveats << plist_caveats
caveats << python_caveats
caveats << app_caveats
caveats.compact.join("\n")
end
@ -59,6 +60,15 @@ class Caveats
end
end
def app_caveats
if keg and keg.app_installed?
<<-EOS.undent
.app bundles were installed to #{f.prefix} (or libexec).
Run `brew linkapps` to symlink these to /Applications.
EOS
end
end
def plist_caveats
s = []
if f.plist or (keg and keg.plist_installed?)