diff options
| author | Jack Nagel | 2014-07-01 21:26:41 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-07-01 21:26:41 -0500 |
| commit | a520785ba0751f5765cae5a0deafb13bfe6bc6c3 (patch) | |
| tree | a7e20cd92e464e5fd17be7d5279a72ddaa1c0a2e /Library/Homebrew/requirements | |
| parent | 387b32e8a624cb0b2062a15662f85d0fabadf574 (diff) | |
| download | homebrew-a520785ba0751f5765cae5a0deafb13bfe6bc6c3.tar.bz2 | |
X11Dependency objects: fix hash equality
Diffstat (limited to 'Library/Homebrew/requirements')
| -rw-r--r-- | Library/Homebrew/requirements/x11_dependency.rb | 4 |
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 |
