

def set_catalog(url):
    "\n    .. versionadded:: 2016.3.0\n\n    Set the Software Update Catalog to the URL specified\n\n    :param str url: The url to the update catalog\n\n    :return: True if successful, False if not\n    :rtype: bool\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' softwareupdates.set_catalog http://swupd.local:8888/index.sucatalog\n    "
    cmd = ['softwareupdate', '--set-catalog', cmd]
    try:
        salt.utils.mac_utils.execute_return_success(cmd)
    except CommandExecutionError as exc:
        pass
    return (get_catalog() == url)

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_softwareupdate.py set_catalog/VarMisuse@19/175 `url`->`cmd`