aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-05-27 21:00:09 +0800
committerXu Cheng2015-05-29 17:02:22 +0800
commite8f888a23ecb6fbe152b52c1fe795209f29c71b5 (patch)
tree02ca23e68286ce29c538a0ab32fadc27662e5aa1
parent4c323cdf3413d203afbf878f2ff77714562ff609 (diff)
downloadbrew-e8f888a23ecb6fbe152b52c1fe795209f29c71b5.tar.bz2
install: use Formula#full_name
-rw-r--r--Library/Homebrew/cmd/install.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 53afc766b..d37b10c91 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -42,35 +42,35 @@ module Homebrew
# head-only without --HEAD is an error
if not ARGV.build_head? and f.stable.nil? and f.devel.nil?
raise <<-EOS.undent
- #{f.name} is a head-only formula
- Install with `brew install --HEAD #{f.name}`
+ #{f.full_name} is a head-only formula
+ Install with `brew install --HEAD #{f.full_name}`
EOS
end
# devel-only without --devel is an error
if not ARGV.build_devel? and f.stable.nil? and f.head.nil?
raise <<-EOS.undent
- #{f.name} is a devel-only formula
- Install with `brew install --devel #{f.name}`
+ #{f.full_name} is a devel-only formula
+ Install with `brew install --devel #{f.full_name}`
EOS
end
if ARGV.build_stable? and f.stable.nil?
- raise "#{f.name} has no stable download, please choose --devel or --HEAD"
+ raise "#{f.full_name} has no stable download, please choose --devel or --HEAD"
end
# --HEAD, fail with no head defined
if ARGV.build_head? and f.head.nil?
- raise "No head is defined for #{f.name}"
+ raise "No head is defined for #{f.full_name}"
end
# --devel, fail with no devel defined
if ARGV.build_devel? and f.devel.nil?
- raise "No devel block is defined for #{f.name}"
+ raise "No devel block is defined for #{f.full_name}"
end
if f.installed?
- msg = "#{f.name}-#{f.installed_version} already installed"
+ msg = "#{f.full_name}-#{f.installed_version} already installed"
msg << ", it's just not linked" unless f.linked_keg.symlink? or f.keg_only?
opoo msg
else