aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/python_dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-27 01:43:30 -0500
committerJack Nagel2013-06-27 01:43:30 -0500
commit52574240af465b1645a8fbaa4fd4dedc78c0b6e0 (patch)
treeadef45612d938bcae67da193ac4b82128b0da451 /Library/Homebrew/requirements/python_dependency.rb
parent10949ad75deaca284300f4db0f392d5a6dba77e8 (diff)
downloadbrew-52574240af465b1645a8fbaa4fd4dedc78c0b6e0.tar.bz2
Use old #eql? for python reqs, for now
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index 90bd14fa6..0c182b66b 100644
--- a/Library/Homebrew/requirements/python_dependency.rb
+++ b/Library/Homebrew/requirements/python_dependency.rb
@@ -342,6 +342,10 @@ class PythonInstalled < Requirement
binary.to_s
end
+ def eql?(other)
+ instance_of?(other.class) && hash == other.hash
+ end
+
def hash
# Requirements are a ComparableSet. So we define our identity by the
# selected python binary plus the @imports in order to support multiple: