aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/outdated.rb
diff options
context:
space:
mode:
authorJack Nagel2013-05-14 20:11:46 -0500
committerJack Nagel2013-05-14 20:11:48 -0500
commit8b763acc2a93a9c9e5759af32852732e313f1744 (patch)
tree11f7056a4dacd327d8244d60ad0b12853460f091 /Library/Homebrew/cmd/outdated.rb
parente0c4fd5b720192cfeb06ba8bfffbc58113057bc1 (diff)
downloadbrew-8b763acc2a93a9c9e5759af32852732e313f1744.tar.bz2
outdated: always do comparisons with a Formula as the receiver
It is possible for the object returned by Formula#version to be a subclass of Version with special behavior, so we want to use that for the comparison.
Diffstat (limited to 'Library/Homebrew/cmd/outdated.rb')
-rw-r--r--Library/Homebrew/cmd/outdated.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/outdated.rb b/Library/Homebrew/cmd/outdated.rb
index 102448eee..83e79222f 100644
--- a/Library/Homebrew/cmd/outdated.rb
+++ b/Library/Homebrew/cmd/outdated.rb
@@ -16,7 +16,7 @@ module Homebrew extend self
def outdated_brews
Formula.installed.map do |f|
kegs = f.rack.subdirs.map { |d| Keg.new(d) }
- unless kegs.any? { |keg| keg.version >= f.version }
+ if kegs.all? { |k| f.version > k.version }
yield f if block_given?
f
end