'Returns True on (seemingly) successfull installation'

def install_dependency(self, name, version, type, **kwds):

    if (type != 'package'):
        log.warning(("Cannot    install    dependencies    of    type    '%s'" % type))
        return False
    if self.versionless:
        version = None
    conda_target = CondaTarget(name, version=version)
    is_installed = is_conda_target_installed(conda_target, conda_context=self.conda_context)
    if is_installed:
        return is_installed
    return_code = install_conda_target(conda_target, conda_context=self.conda_context)
    if (return_code != 0):
        is_installed = False
    else:
        is_installed = is_conda_target_installed(conda_target, conda_context=self.conda_context)
    if (not is_installed):
        log.debug("Removing    failed    conda    install    of    {},    version    '{}'".format(name, version))
        cleanup_failed_install(conda_target, conda_context=self.conda_context)
    return is_installed
