]> arthur.barton.de Git - bup.git/commit - lib/bup/cmd/save.py
save: skip/balk if an entry changed type since indexing
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 2 Jan 2021 19:58:44 +0000 (20:58 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 15 May 2021 18:57:24 +0000 (13:57 -0500)
commit8f978885723ef4d266170d37338ecf7744d3f659
tree81d164bb43d9642e92a475649728fc96f78a03c5
parent98a924b11b52d8e41488ca800f50b3a594855458
save: skip/balk if an entry changed type since indexing

If an entry changed file type (link, regular file, ...) since
indexing, then all kinds of weird things can happen. Skip the
item in such cases and record an error.

This also requires adjusting the test that actually provokes
a failure in metadata read - now we don't store the file at
all, so modify the test to account for that behaviour in the
check.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/cmd/save.py
test/ext/test-save-errors