(id, cdata)
| 113 | from ..crypto.key import key_factory |
| 114 | |
| 115 | def decrypt_dump(id, cdata): |
| 116 | if cdata is not None: |
| 117 | _, data = repo_objs.parse(id, cdata, ro_type=ROBJ_DONTCARE) |
| 118 | else: |
| 119 | _, data = {}, b"" |
| 120 | filename = f"{bin_to_hex(id)}.obj" |
| 121 | print("Dumping", filename) |
| 122 | with open(filename, "wb") as fd: |
| 123 | fd.write(data) |
| 124 | |
| 125 | # set up the key without depending on a manifest obj |
| 126 | result = repository.list(limit=1, marker=None) |
nothing calls this directly
no test coverage detected