aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorKevin Ballard2010-10-06 20:04:40 -0700
committerAdam Vandenberg2010-10-07 10:17:23 -0700
commit568e89facd6b6e7b207b45e06c60c77ddef2169d (patch)
treea3a444452df63467426b528dad4e2f681e326a93 /bin
parent9ae7b53e214b2c2e4ef30f61988403f912401b76 (diff)
downloadhomebrew-568e89facd6b6e7b207b45e06c60c77ddef2169d.tar.bz2
Consider outdated kegs in brew uses --installed
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index f33717f0b..bb12c932b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -264,7 +264,9 @@ begin
# We only go one level up, ie. direct dependencies.
when 'uses'
uses = ARGV.formulae.map{ |f| Formula.all.select{ |ff| ff.deps.include? f.name }.map{|f| f.name} }.flatten.uniq
- uses = uses.select { |f| Formula.factory(f).installed? } if ARGV.include? "--installed"
+ if ARGV.include? "--installed"
+ uses = uses.select { |f| f = HOMEBREW_CELLAR+f; f.directory? and not f.subdirs.empty? }
+ end
puts *uses.sort
when 'deps'