mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
dump-share: clarify the label on the size of the original file
This commit is contained in:
parent
3fcee101ee
commit
51b59b1219
@ -61,17 +61,21 @@ def dump_share(config, out=sys.stdout, err=sys.stderr):
|
||||
keys3 = ("plaintext_hash", "plaintext_root_hash",
|
||||
"crypttext_hash", "crypttext_root_hash",
|
||||
"share_root_hash")
|
||||
display_keys = {"size": "file_size"}
|
||||
for k in keys1:
|
||||
if k in unpacked:
|
||||
print >>out, "%19s: %s" % (k, unpacked[k])
|
||||
dk = display_keys.get(k, k)
|
||||
print >>out, "%19s: %s" % (dk, unpacked[k])
|
||||
print >>out
|
||||
for k in keys2:
|
||||
if k in unpacked:
|
||||
print >>out, "%19s: %s" % (k, unpacked[k])
|
||||
dk = display_keys.get(k, k)
|
||||
print >>out, "%19s: %s" % (dk, unpacked[k])
|
||||
print >>out
|
||||
for k in keys3:
|
||||
if k in unpacked:
|
||||
print >>out, "%19s: %s" % (k, unpacked[k])
|
||||
dk = display_keys.get(k, k)
|
||||
print >>out, "%19s: %s" % (dk, unpacked[k])
|
||||
|
||||
leftover = set(unpacked.keys()) - set(keys1 + keys2 + keys3)
|
||||
if leftover:
|
||||
|
Loading…
Reference in New Issue
Block a user