aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-23 22:50:51 -0500
committerJack Nagel2014-06-23 22:55:23 -0500
commit0fa4c068b8175ba0e77b2c12c12230a0f2313d91 (patch)
treed2516f7d7081cb572d1eb9291bc8058a3b4a61d1 /Library
parentbf1c363e44760108df331d98463ef49d43b173dd (diff)
downloadhomebrew-0fa4c068b8175ba0e77b2c12c12230a0f2313d91.tar.bz2
Keg#unlink only removes a linked keg entry *for that keg*
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index af5daed14..46a338cad 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -130,7 +130,7 @@ class Keg < Pathname
end
end
- if linked_keg_record.symlink?
+ if linked?
linked_keg_record.unlink
linked_keg_record.parent.rmdir_if_possible
end