From db9f16e2cdfde9ac221f725f7f898dd09112cd72 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 19 Jun 2014 21:35:46 -0500 Subject: [PATCH] Formula equality reflects the active spec --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 11e1eecb7e..66bf75d179 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -299,7 +299,9 @@ class Formula end def == other - instance_of?(other.class) && name == other.name + instance_of?(other.class) && + name == other.name && + active_spec == other.active_spec end alias_method :eql?, :==