aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Arko2010-02-11 17:05:38 -0800
committerAndre Arko2010-02-11 17:05:38 -0800
commitc1679de4e389a10f61a74009bb851e3d37c660ad (patch)
tree17ca84a873bb12381f7a5493be369bd161bf1736
parent8179a28767178fb2b7e2d9b30b88cfd680bbb4d1 (diff)
downloadhomebrew-c1679de4e389a10f61a74009bb851e3d37c660ad.tar.bz2
Don't abort cleanup if formulae are missing
-rwxr-xr-xbin/brew6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 01612695d..ef152fd83 100755
--- a/bin/brew
+++ b/bin/brew
@@ -211,7 +211,11 @@ begin
if ARGV.named.empty?
require 'formula'
HOMEBREW_CELLAR.children.each do |rack|
- cleanup(rack.basename.to_s) if rack.directory?
+ begin
+ cleanup(rack.basename.to_s) if rack.directory?
+ rescue FormulaUnavailableError => e
+ opoo "Formula not found for #{e.name}"
+ end
end
else
ARGV.named.each { |name| cleanup name}