diff options
| author | Jack Nagel | 2012-08-14 23:50:17 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-18 11:26:00 -0500 |
| commit | a81da08732923a0cdda2831233b395fcaabcb366 (patch) | |
| tree | a774deb386a0e260e90fcc308497c1ccbcf06955 | |
| parent | d95f467362174bdd8275e4fb97d48819a53d8ecb (diff) | |
| download | brew-a81da08732923a0cdda2831233b395fcaabcb366.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 |
