aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-19 21:35:46 -0500
committerJack Nagel2014-06-20 21:32:36 -0500
commitdb9f16e2cdfde9ac221f725f7f898dd09112cd72 (patch)
tree8483070fdbfcaaf3cac3317c8579b6c7e10b1a06 /Library
parent8976a960df0a4768be3a6df77874a151535e14f7 (diff)
downloadbrew-db9f16e2cdfde9ac221f725f7f898dd09112cd72.tar.bz2
Formula equality reflects the active spec
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 11e1eecb7..66bf75d17 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?, :==