Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/cli.py
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | ): | ||||
cooker_cls = get_cooker_cls(cooker_name) | cooker_cls = get_cooker_cls(cooker_name) | ||||
cooker = cooker_cls( | cooker = cooker_cls( | ||||
obj_type=cooker_name, | obj_type=cooker_name, | ||||
obj_id=swhid.object_id, | obj_id=swhid.object_id, | ||||
backend=backend, | backend=backend, | ||||
storage=storage, | storage=storage, | ||||
graph=graph, | graph=graph, | ||||
objstorage=objstorage, | objstorage=objstorage, | ||||
max_bundle_size=None, # No need for a size limit, we are running locally | |||||
) | ) | ||||
cooker.cook() | cooker.cook() | ||||
try: | try: | ||||
bundle = backend.fetch(cooker_name, swhid.object_id) | bundle = backend.fetch(cooker_name, swhid.object_id) | ||||
except ObjNotFoundError: | except ObjNotFoundError: | ||||
bundle = None | bundle = None | ||||
if bundle is None: | if bundle is None: | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |