]> arthur.barton.de Git - bup.git/commit
save: add empty metadata if reading fails
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 25 Jan 2020 21:18:53 +0000 (22:18 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2020 19:23:27 +0000 (14:23 -0500)
commited5423c6a5f18dbaf85362aa0517f8d00cf31bfc
tree5e178910fc2a0b732e2db2036960a8c9598b429e
parent9c78eb4acad15ce908a22003b0c57e148bb59062
save: add empty metadata if reading fails

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>
(cherry picked from commit 47891d8951a95b8e0d9ca94387107cdf12ca3d3c)
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py