def download(name):
    if not update_available(name):
        raise SaltInvocationError('Update not available: {0}'.format(name))

    if name in list_downloads():
        return True

    cmd = ['softwareupdate', '--download', name]
    salt.utils.mac_utils.execute_return_success(cmd)

    return name in list_downloads()
Normalizes a string of characters representing a phone number.
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py/download--crossover with--dataset/ETHPy150Open daviddrysdale/python-phonenumbers/python/phonenumbers/phonenumberutil.py/_normalize_diallable_chars_only