

def update(name):
    "\n    Install a named update.\n\n    :param str name: The name of the of the update to install.\n\n    :return: True if successfully updated, otherwise False\n    :rtype: bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n       salt '*' softwareupdate.update <update-name>\n    "
    if (not update_available(name)):
        raise SaltInvocationError('Update not available: {0}'.format(name))
    cmd = ['softwareupdate', '--install', name]
    salt.utils.mac_utils.execute_return_success(cmd)
    return (not update_available(cmd))

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py update/VarMisuse@61/201 `name`->`cmd`