def subcmd_bundle_update(config, cargs):
    catalog = get_catalog(config, cargs)

    flavors = None
    if cargs.flavors is not None:
        try:
            with open(cargs.flavors) as f:
                flavors_dict = json.load(f)
                flavors = ZincFlavorSpec.from_dict(flavors_dict)
        except __HOLE__:
            flavors = catalog.get_flavorspec(cargs.flavors)

        assert flavors is not None

    bundle_name = cargs.bundle
    path = cargs.path
    force = cargs.force
    skip_master_archive = cargs.skip_master_archive

    bundle_update(catalog, bundle_name, path, flavors=flavors, force=force,
                  skip_master_archive=skip_master_archive)
dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/cli.py/subcmd_bundle_update