Merge pull request #3801 from ThomasWaldmann/dump-objs-no-manifest

debug dump-repo-objs should not depend on a manifest obj
This commit is contained in:
TW 2018-05-02 01:19:25 +02:00 committed by GitHub
commit ee4d6fef40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -1884,9 +1884,15 @@ class Archiver:
json.dump(meta, fd, indent=4) json.dump(meta, fd, indent=4)
return EXIT_SUCCESS return EXIT_SUCCESS
@with_repository(compatibility=Manifest.NO_OPERATION_CHECK) @with_repository(manifest=False)
def do_debug_dump_repo_objs(self, args, repository, manifest, key): def do_debug_dump_repo_objs(self, args, repository):
"""dump (decrypted, decompressed) repo objects""" """dump (decrypted, decompressed) repo objects"""
from .crypto.key import key_factory
# set up the key without depending on a manifest obj
ids = repository.list(limit=1, marker=None)
cdata = repository.get(ids[0])
key = key_factory(repository, cdata)
marker = None marker = None
i = 0 i = 0
while True: while True: