except MissingObject as ex:
log('bup: missing object %r \n' % hexstr(ex.oid))
sys.exit(1)
- try:
+ with live_objects:
# FIXME: just rename midxes and bloom, and restore them at the end if
# we didn't change any packs?
packdir = git.repo(b'objects/pack')
sweep(live_objects, existing_count, cat_pipe,
threshold, compression,
verbosity)
- finally:
- live_objects.close()