aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-06-19 21:35:46 -0500
committerJack Nagel2014-06-20 21:32:36 -0500
commit7eb0d525ae1550163024a5dfa7b5b46dd3211049 (patch)
tree85c1f911ec6d2e474a11d45044ad3e0e5e055c88 /Library/Homebrew
parent7f53ebd4fd905e4aff8109bbf5c5e7d75686c200 (diff)
downloadhomebrew-7eb0d525ae1550163024a5dfa7b5b46dd3211049.tar.bz2
Formula equality reflects the active spec
Diffstat (limited to 'Library/Homebrew')
-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?, :==