Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Revert 66a4ea1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mistydemeo authored and hmac committed Aug 8, 2012
1 parent ec92f44 commit 804c940
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Library/Homebrew/keg.rb
Expand Up @@ -35,12 +35,7 @@ def unlink
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
Expand Down

0 comments on commit 804c940

Please sign in to comment.