diff options
| author | Jack Nagel | 2013-06-27 01:43:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-27 01:43:30 -0500 |
| commit | ba90af7946995bb982496d2e4f25af6dc577a30f (patch) | |
| tree | d30a114754fdf467753e5512c0d9a6df9cb63775 /Library | |
| parent | bc80b3d190b9aaca5514f28aab94a2cb33937b26 (diff) | |
| download | homebrew-ba90af7946995bb982496d2e4f25af6dc577a30f.tar.bz2 | |
Use old #eql? for python reqs, for now
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements/python_dependency.rb | 4 |
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: |
