Previously, using bup split with bup restore would cause an error:
UnboundLocalError: local variable 'root_meta' referenced before assignment
Signed-off-by: itxx00 <itxx00@gmail.com>
[rlb@defaultvalue.org: adjust commit message. Initialize root_meta
unconditionally before guard to match other code.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
# Directory metadata is the first entry in any .bupm file in
# the directory. Get it.
mfile = n.metadata_file() # VFS file -- cannot close().
+ root_meta = None
if mfile:
meta_stream = mfile.open()
root_meta = metadata.Metadata.read(meta_stream)