diff options
| author | Xu Cheng | 2015-05-27 20:40:32 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-05-29 17:01:53 +0800 |
| commit | e5f514577370dee33d5c28c638bd1d2b36d61a0d (patch) | |
| tree | 2a25b5070a34120c30c90ce5bc65a2214d883ced | |
| parent | d2cd7ffdf2ae363bc6611d1130654e377f58636d (diff) | |
| download | brew-e5f514577370dee33d5c28c638bd1d2b36d61a0d.tar.bz2 | |
caveats: use Formula#full_name
| -rw-r--r-- | Library/Homebrew/caveats.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 0eb5b2af2..99a31c4b8 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -124,16 +124,16 @@ class Caveats # https://github.com/Homebrew/homebrew/issues/33815 if !plist_path.file? || !plist_path.symlink? if f.plist_startup - s << "To have launchd start #{f.name} at startup:" + s << "To have launchd start #{f.full_name} at startup:" s << " sudo mkdir -p #{destination}" unless destination_path.directory? s << " sudo cp -fv #{f.opt_prefix}/*.plist #{destination}" s << " sudo chown root #{plist_link}" else - s << "To have launchd start #{f.name} at login:" + s << "To have launchd start #{f.full_name} at login:" s << " mkdir -p #{destination}" unless destination_path.directory? s << " ln -sfv #{f.opt_prefix}/*.plist #{destination}" end - s << "Then to load #{f.name} now:" + s << "Then to load #{f.full_name} now:" if f.plist_startup s << " sudo launchctl load #{plist_link}" else @@ -142,17 +142,17 @@ class Caveats # For startup plists, we cannot tell whether it's running on launchd, # as it requires for `sudo launchctl list` to get real result. elsif f.plist_startup - s << "To reload #{f.name} after an upgrade:" + s << "To reload #{f.full_name} after an upgrade:" s << " sudo launchctl unload #{plist_link}" s << " sudo cp -fv #{f.opt_prefix}/*.plist #{destination}" s << " sudo chown root #{plist_link}" s << " sudo launchctl load #{plist_link}" elsif Kernel.system "/bin/launchctl list #{plist_domain} &>/dev/null" - s << "To reload #{f.name} after an upgrade:" + s << "To reload #{f.full_name} after an upgrade:" s << " launchctl unload #{plist_link}" s << " launchctl load #{plist_link}" else - s << "To load #{f.name}:" + s << "To load #{f.full_name}:" s << " launchctl load #{plist_link}" end |
