Commit 054c3d87 authored by bescoto's avatar bescoto

Warn at unknown field, not abort


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@691 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 9e035d03
Only warn, not abort, when get undefined metadata field
Fix restore with --force over existing regular file. Fix restore with --force over existing regular file.
For comparing, check source filesystem's abilities For comparing, check source filesystem's abilities
......
...@@ -199,8 +199,7 @@ def Record2RORP(record_string): ...@@ -199,8 +199,7 @@ def Record2RORP(record_string):
elif field == "Permissions": data_dict['perms'] = int(data) elif field == "Permissions": data_dict['perms'] = int(data)
elif field == "AlternateMirrorName": data_dict['mirrorname'] = data elif field == "AlternateMirrorName": data_dict['mirrorname'] = data
elif field == "AlternateIncrementName": data_dict['incname'] = data elif field == "AlternateIncrementName": data_dict['incname'] = data
else: raise ParsingError("Unknown field in line '%s %s'" % else: log.Log("Unknown field in line '%s %s'" % (field, data), 2)
(field, data))
return rpath.RORPath(index, data_dict) return rpath.RORPath(index, data_dict)
chars_to_quote = re.compile("\\n|\\\\") chars_to_quote = re.compile("\\n|\\\\")
......
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