diff options
| author | Jack Nagel | 2012-02-10 12:56:22 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-10 12:58:24 -0600 |
| commit | 46b80bd55220abfb94be7b185d4e73fe7636043b (patch) | |
| tree | 7b1f623ce8b342dc45643af99eeff0c2bd6c6e74 /Library | |
| parent | 511598fa3731158a933aee6ee9a6014f339dc283 (diff) | |
| download | brew-46b80bd55220abfb94be7b185d4e73fe7636043b.tar.bz2 | |
Revert "install: unlink old kegs"
This reverts commit 2eabe2cbc84649696aeb6fa842a70f3794955597.
When Keg#unlink looks for symlinks relative to the keg, it can hit false
positives that actually belong to a different keg and unlink them
anyway. This breaks our "force identical directory symlinks to be shared
real directory" case.
This may be a problem in general with the unlinking code and should be
investigated.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 4260eaac9..5aa198f31 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -103,10 +103,6 @@ module Homebrew extend self begin fi = FormulaInstaller.new(f) fi.install - # Due to the nature of Keg#unlink, this will remove symlinks from an - # older keg, which may still be present if an uninstallation was done - # via `rm -rf <keg>`; this is desired. - Keg.new("#{f.rack}/#{f.version}").unlink fi.caveats fi.finish rescue FormulaAlreadyInstalledError => e |
