Commit fa02a025 authored by Tres Seaver's avatar Tres Seaver

fsrefs.py was reporting spurious 'missing' classes.

parent 118d3596
......@@ -153,6 +153,8 @@ PersistentMapping
Tools
-----
- (3.6.3) Fixed bug in 'fsrefs.py' which caused it to report erroneous
"missing" classes.
- (3.6b5) The changeover from zLOG to the logging module means that some
tools need to perform minimal logging configuration themselves. Changed
......
......@@ -129,11 +129,8 @@ def main(path):
data, serial = fs.load(oid, "")
refs = get_refs(data)
missing = [] # contains 3-tuples of oid, klass-metadata, reason
for info in refs:
ref, klass = info
for ref, klass in refs:
if klass is None:
# failed to unpack
ref = info
klass = '<unknown>'
if ref not in fs._index:
missing.append((ref, klass, "missing"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment