aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/uninstall.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/uninstall.rb')
-rw-r--r--Library/Homebrew/cmd/uninstall.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb
index bfc521ff0..a7b426c0c 100644
--- a/Library/Homebrew/cmd/uninstall.rb
+++ b/Library/Homebrew/cmd/uninstall.rb
@@ -22,8 +22,11 @@ module Homebrew
if rack.directory?
puts "Uninstalling #{name}..."
- rack.subdirs.each { |d| Keg.new(d).unlink }
- rack.rmtree
+ rack.subdirs.each do |d|
+ keg = Keg.new(d)
+ keg.unlink
+ keg.uninstall
+ end
end
rm_opt_link name