diff options
| author | Misty De Meo | 2012-07-24 09:40:20 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-07-24 09:52:12 -0500 |
| commit | 02f66b5ef7ff339a3ac68f6d87b749674fef0a75 (patch) | |
| tree | 2aaf4836cabfc3e39f69b13fe77d081ad358f907 /Library/Homebrew | |
| parent | 04f2815022e010fd1120cb6b6ab3b3cbd7c49b8f (diff) | |
| download | homebrew-02f66b5ef7ff339a3ac68f6d87b749674fef0a75.tar.bz2 | |
Revert 66a4ea1c80fa36fe348b3d5ad6d2f6c61cf21c05
Refusing to unlink files from another keg introduced issues when
files changed between formula versions; for instance, this
introduced issues when upgrading from gtk+ 2.24.10 to 2.24.11.
See #12778.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/keg.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 0d9a12cc6..fb6996cdd 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -35,12 +35,7 @@ class Keg < Pathname src.find do |src| next if src == self dst=HOMEBREW_PREFIX+src.relative_path_from(self) - - # check whether the file to be unlinked is from the current keg first - if !dst.symlink? || !dst.exist? || src.expand_path != dst.realpath - next - end - + next unless dst.symlink? dst.uninstall_info if dst.to_s =~ INFOFILE_RX and ENV['HOMEBREW_KEEP_INFO'] dst.unlink dst.parent.rmdir_if_possible |
