aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
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