From 46b80bd55220abfb94be7b185d4e73fe7636043b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 10 Feb 2012 12:56:22 -0600 Subject: 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 --- Library/Homebrew/cmd/install.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Library/Homebrew') 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 `; this is desired. - Keg.new("#{f.rack}/#{f.version}").unlink fi.caveats fi.finish rescue FormulaAlreadyInstalledError => e -- cgit v1.2.3