aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-06-23 22:00:33 -0500
committerJack Nagel2014-06-23 22:34:41 -0500
commit60fdf0011608ea78863f170046f2d0052afbe45f (patch)
tree3658428658a4b732133d1981220a4cd379887862 /Library/Homebrew/cmd
parentf478cacc8f116b4e89d3833f93db35793f97eaa3 (diff)
downloadhomebrew-60fdf0011608ea78863f170046f2d0052afbe45f.tar.bz2
Use Keg#uninstall to uninstall kegs
Diffstat (limited to 'Library/Homebrew/cmd')
-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