def _install_configured_applications(env, tools_conf):
    """
    Install external tools defined by YAML or dictionary data structure.  Instead of
    installing in system_install (e.g. /usr), these custom tools will be installed as
    Galaxy dependency applications.
    """
    applications = tools_conf["applications"] or {}
    # Changing the default behavior here to install all tools and
    # just record exceptions as they occur, but wait until the end
    # raise an exception out of this block. Disable this behavior
    # by setting galaxay_tool_defer_errors to False.
    defer_errors = env.get("galaxy_tool_defer_errors", True)
    exceptions = {}
    for (name, tool_conf) in applications.iteritems():
        if not __check_conditional(tool_conf):
            continue

        try:
            _install_application(name, tool_conf)
        except BaseException, e:
            exceptions[name] = e
            if not defer_errors:
                break

    if exceptions:
        for name, exception in exceptions.iteritems():
            env.logger.warn(name % FAILED_INSTALL_MESSAGE)
        first_exception = exceptions.values()[0]
        raise first_exception
dataset/ETHPy150Open chapmanb/cloudbiolinux/cloudbio/galaxy/tools.py/_install_configured_applications/swapped operands of `%`