From 84eae3c425336e53e8758d0f12acd52f8eea3c05 Mon Sep 17 00:00:00 2001 From: Dave Bayer Date: Mon, 22 Aug 2011 14:56:05 -0700 Subject: [PATCH] Fix uninstall.rb `brew remove --force` "Directory not empty" error Finder activity such as moving the position of an icon can create an unexpected .DS_Store file in a Cellar directory. This causes `brew remove --force` to throw an error that is reported as Error: Directory not empty - /usr/local/Cellar/ This fix avoids that error, by calling rmtree rather than rmdir. Signed-off-by: Adam Vandenberg --- Library/Homebrew/cmd/uninstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index 9b16cfe547..76c94969a4 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -20,7 +20,7 @@ module Homebrew extend self keg.rmtree end end - rack.rmdir + rack.rmtree end end end