minor improvement. messages are now warnings (not errors because lots of them are not causing problems for a normal usage) and most of all it's being checked only if the --dependencies is used (until now this switch has been ignored and turned on by default - always)

This commit is contained in:
Miroslav Stampar 2011-06-14 19:38:35 +00:00
parent a4328e914b
commit d55a242908
3 changed files with 36 additions and 28 deletions

View file

@ -1212,6 +1212,14 @@ def __setHTTPTimeout():
socket.setdefaulttimeout(conf.timeout)
def __checkDependencies():
"""
Checks for missing dependencies.
"""
if conf.dependencies:
checkDependencies()
def __cleanupOptions():
"""
Cleanup configuration attributes.
@ -1744,7 +1752,7 @@ def init(inputOptions=advancedDict(), overrideOptions=False):
__saveCmdline()
__setRequestFromFile()
__cleanupOptions()
checkDependencies()
__checkDependencies()
__basicOptionValidation()
__setTorProxySettings()
__setMultipleTargets()