diff options
| author | Jack Nagel | 2012-08-14 23:50:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-18 11:26:00 -0500 |
| commit | a17eaca132086ecc0c113c3bc6305b57e2fb90ad (patch) | |
| tree | d891f7e3a2ae7d363a419500588a91549aa9445c | |
| parent | 094ce49859a3aa7550419addd36a0d15f3152cf7 (diff) | |
| download | homebrew-a17eaca132086ecc0c113c3bc6305b57e2fb90ad.tar.bz2 | |
Refer to the real keg when dying because the keg exists
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 5135f02c3..fe4ac3086 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -24,7 +24,8 @@ class FormulaInstaller def check_install_sanity if f.installed? - raise CannotInstallFormulaError, "#{f}-#{f.version} already installed" + keg = Keg.new(f.installed_prefix) + raise CannotInstallFormulaError, "#{f}-#{keg.version} already installed" end # Building head-only without --HEAD is an error |
