def update(name):
    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(name)
If the keyed message exists, remove it.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py/update--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/Maildir.discard