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
commitba90af7946995bb982496d2e4f25af6dc577a30f (patch)
treed30a114754fdf467753e5512c0d9a6df9cb63775 /Library/Homebrew/requirements/python_dependency.rb
parentbc80b3d190b9aaca5514f28aab94a2cb33937b26 (diff)
downloadhomebrew-ba90af7946995bb982496d2e4f25af6dc577a30f.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: