aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
authorJack Nagel2014-07-01 21:26:41 -0500
committerJack Nagel2014-07-01 21:26:41 -0500
commita520785ba0751f5765cae5a0deafb13bfe6bc6c3 (patch)
treea7e20cd92e464e5fd17be7d5279a72ddaa1c0a2e /Library/Homebrew/requirements
parent387b32e8a624cb0b2062a15662f85d0fabadf574 (diff)
downloadhomebrew-a520785ba0751f5765cae5a0deafb13bfe6bc6c3.tar.bz2
X11Dependency objects: fix hash equality
Diffstat (limited to 'Library/Homebrew/requirements')
-rw-r--r--Library/Homebrew/requirements/x11_dependency.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/x11_dependency.rb b/Library/Homebrew/requirements/x11_dependency.rb
index 7adc2a7cb..dae2101fc 100644
--- a/Library/Homebrew/requirements/x11_dependency.rb
+++ b/Library/Homebrew/requirements/x11_dependency.rb
@@ -34,4 +34,8 @@ class X11Dependency < Requirement
return unless X11Dependency === other
min_version <=> other.min_version
end
+
+ def eql?(other)
+ super && min_version == other.min_version
+ end
end