brew outdated works if there is eg. Cellar/.DS_Store

This commit is contained in:
Max Howell 2010-02-27 17:21:34 +00:00
parent 1dfab1350a
commit 70bfe518ec

View File

@ -338,7 +338,7 @@ begin
when 'outdated'
require 'formula'
HOMEBREW_CELLAR.children.each do |keg|
HOMEBREW_CELLAR.subdirs.each do |keg|
if keg.subdirs.length > 0
name = keg.basename('.rb').to_s
if (not (f = Formula.factory(name)).installed? rescue nil)