If we cannot read a file's metadata, we must add an entry in the
repository nonetheless because the bupm contents must match the
tree contents.
Add a dummy (empty) metadata entry in this case, as is already
done when reading a directory's metadata.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
except (OSError, IOError) as e:
add_error(e)
lastskip_name = ent.name
- else:
- metalists[-1].append((sort_key, meta))
+ meta = metadata.Metadata()
+ metalists[-1].append((sort_key, meta))
if exists and wasmissing:
count += oldsize