aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2015-05-27 21:23:45 +0800
committerXu Cheng2015-05-29 17:02:23 +0800
commit082ce482fcbdbe1e38f5b610f53bafe6b3dad9ba (patch)
tree630d6f3fe92734adee9122e48f05e66252b05209 /Library/Homebrew/cmd
parent019bdb25f1ba1f6c3565b8db34ee43f22ab627e8 (diff)
downloadbrew-082ce482fcbdbe1e38f5b610f53bafe6b3dad9ba.tar.bz2
upgrade: use Formula#full_name
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index 13ea69d73..12833c15a 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -21,9 +21,9 @@ module Homebrew
(ARGV.resolved_formulae - outdated).each do |f|
if f.rack.directory?
version = f.rack.subdirs.map { |d| Keg.new(d).version }.max
- onoe "#{f.name} #{version} already installed"
+ onoe "#{f.full_name} #{version} already installed"
else
- onoe "#{f.name} not installed"
+ onoe "#{f.full_name} not installed"
end
end
exit 1 if outdated.empty?
@@ -41,14 +41,14 @@ module Homebrew
unless outdated.empty?
oh1 "Upgrading #{outdated.length} outdated package#{plural(outdated.length)}, with result:"
- puts outdated.map{ |f| "#{f.name} #{f.pkg_version}" } * ", "
+ puts outdated.map{ |f| "#{f.full_name} #{f.pkg_version}" } * ", "
else
oh1 "No packages to upgrade"
end
unless upgrade_pinned? || pinned.empty?
oh1 "Not upgrading #{pinned.length} pinned package#{plural(pinned.length)}:"
- puts pinned.map{ |f| "#{f.name} #{f.pkg_version}" } * ", "
+ puts pinned.map{ |f| "#{f.full_name} #{f.pkg_version}" } * ", "
end
outdated.each { |f| upgrade_formula(f) }
@@ -71,7 +71,7 @@ module Homebrew
fi.debug = ARGV.debug?
fi.prelude
- oh1 "Upgrading #{f.name}"
+ oh1 "Upgrading #{f.full_name}"
# first we unlink the currently active keg for this formula otherwise it is
# possible for the existing build to interfere with the build we are about to