aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-09-14 11:18:55 -0500
committerJack Nagel2014-09-14 11:19:30 -0500
commit1f162dba6f2355f3d7f58b5bdd0194c4ccbcdc24 (patch)
tree731eb11a663cc1c67522e210a2162fa26dea799c /Library/Homebrew/cmd
parent672339b7ca08f791a485f71397b54d7de6ad020f (diff)
downloadhomebrew-1f162dba6f2355f3d7f58b5bdd0194c4ccbcdc24.tar.bz2
Consistently call name on formula instead of relying on to_s
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb2
-rw-r--r--Library/Homebrew/cmd/upgrade.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index c8e0e9e42..94f9e3a78 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -29,7 +29,7 @@ module Homebrew
# Building head-only without --HEAD is an error
if not ARGV.build_head? and f.stable.nil?
raise CannotInstallFormulaError, <<-EOS.undent
- #{f} is a head-only formula
+ #{f.name} is a head-only formula
Install with `brew install --HEAD #{f.name}`
EOS
end
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index ae8ba2c73..8f1b7fabe 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -11,10 +11,10 @@ module Homebrew
else
outdated = ARGV.formulae.select do |f|
if f.installed?
- onoe "#{f}-#{f.installed_version} already installed"
+ onoe "#{f.name}-#{f.installed_version} already installed"
false
elsif not f.rack.directory? or f.rack.subdirs.empty?
- onoe "#{f} not installed"
+ onoe "#{f.name} not installed"
false
else
true