From ba90af7946995bb982496d2e4f25af6dc577a30f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 27 Jun 2013 01:43:30 -0500 Subject: Use old #eql? for python reqs, for now --- Library/Homebrew/requirements/python_dependency.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/requirements/python_dependency.rb') 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: -- cgit v1.2.3