Commit 1a17e80c authored by Tres Seaver's avatar Tres Seaver

fsrefs.py was reporting spurious 'missing' classes.

parent eacc32c9
...@@ -74,6 +74,10 @@ Testing ...@@ -74,6 +74,10 @@ Testing
Tools Tools
----- -----
- (3.7b2) Fixed bug in 'fsrefs.py' which caused it to report erroneous
"missing" classes.
- (3.7a1) The changeover from zLOG to the logging module means that some - (3.7a1) The changeover from zLOG to the logging module means that some
tools need to perform minimal logging configuration themselves. Changed tools need to perform minimal logging configuration themselves. Changed
the zeoup script to do so and thus enable it to emit error messages. the zeoup script to do so and thus enable it to emit error messages.
......
...@@ -129,11 +129,8 @@ def main(path): ...@@ -129,11 +129,8 @@ def main(path):
data, serial = fs.load(oid, "") data, serial = fs.load(oid, "")
refs = get_refs(data) refs = get_refs(data)
missing = [] # contains 3-tuples of oid, klass-metadata, reason missing = [] # contains 3-tuples of oid, klass-metadata, reason
for info in refs: for ref, klass in refs:
ref, klass = info
if klass is None: if klass is None:
# failed to unpack
ref = info
klass = '<unknown>' klass = '<unknown>'
if ref not in fs._index: if ref not in fs._index:
missing.append((ref, klass, "missing")) 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