|
|
@ -90,7 +90,7 @@ EXAMPLES = '''
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
def _is_package_installed(module, name, easy_install, executable_arguments):
|
|
|
|
def _is_package_installed(module, name, easy_install, executable_arguments):
|
|
|
|
executable_arguments.append('--dry-run')
|
|
|
|
executable_arguments = executable_arguments + ['--dry-run']
|
|
|
|
cmd = '%s %s %s' % (easy_install, ' '.join(executable_arguments), name)
|
|
|
|
cmd = '%s %s %s' % (easy_install, ' '.join(executable_arguments), name)
|
|
|
|
rc, status_stdout, status_stderr = module.run_command(cmd)
|
|
|
|
rc, status_stdout, status_stderr = module.run_command(cmd)
|
|
|
|
return not ('Reading' in status_stdout or 'Downloading' in status_stdout)
|
|
|
|
return not ('Reading' in status_stdout or 'Downloading' in status_stdout)
|
|
|
|