aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-14 12:43:25 -0500
committerJack Nagel2013-08-14 12:46:37 -0500
commitf8c34b5dc153d7ba2922be0665367c971e78e56a (patch)
tree35b1cb16683fb48a7f2a4d988d010eb110c06793 /Library
parent3857f83e9c9b23004261bbc97aabf2a889f272e5 (diff)
downloadbrew-f8c34b5dc153d7ba2922be0665367c971e78e56a.tar.bz2
Reverse conditional
Diffstat (limited to 'Library')
-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