aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements/python_dependency.rb
diff options
context:
space:
mode:
authorJack Nagel2013-08-14 12:43:25 -0500
committerJack Nagel2013-08-14 12:46:37 -0500
commit8dcc870e81f5f760c1879d2ca0c22a6caa499d4b (patch)
tree1927420a6ced3594189cf431fb49805d15fea5c6 /Library/Homebrew/requirements/python_dependency.rb
parent279a077c6ce65d6e1e46cc25bf0b6aecf68d3480 (diff)
downloadhomebrew-8dcc870e81f5f760c1879d2ca0c22a6caa499d4b.tar.bz2
Reverse conditional
Diffstat (limited to 'Library/Homebrew/requirements/python_dependency.rb')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index e1146d31d..acd4abc8b 100644
--- a/Library/Homebrew/requirements/python_dependency.rb
+++ b/Library/Homebrew/requirements/python_dependency.rb
@@ -92,7 +92,9 @@ class PythonInstalled < Requirement
false
else
@imports.keys.all? do |module_name|
- if not importable? module_name
+ if importable? module_name
+ true
+ else
@unsatisfied_because += "Unsatisfied dependency: #{module_name}\n"
@unsatisfied_because += "OS X System's " if from_osx?
@unsatisfied_because += "Brewed " if brewed?
@@ -101,8 +103,6 @@ class PythonInstalled < Requirement
@unsatisfied_because += "sudo easy_install pip\n " unless importable? 'pip'
@unsatisfied_because += "pip-#{version.major}.#{version.minor} install #{@imports[module_name]}"
false
- else
- true
end
end
end