diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-12-08 19:37:11 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-12-28 21:51:24 +0000 |
commit | 859ab8c8e37b9f7f9c00d4281f15ca6d7fb4eaa8 (patch) | |
tree | 868b3cbbd3df8ff5190696553511cc2cc29ce4b2 /obnamlib/plugins/restore_plugin.py | |
parent | 8f6107857adfe177aaf72f3ca844640c83a9a57e (diff) | |
download | obnam-859ab8c8e37b9f7f9c00d4281f15ca6d7fb4eaa8.tar.gz |
Fixes to restore's Metadata creation
Diffstat (limited to 'obnamlib/plugins/restore_plugin.py')
-rw-r--r-- | obnamlib/plugins/restore_plugin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py index a91f6070..2da1aa7e 100644 --- a/obnamlib/plugins/restore_plugin.py +++ b/obnamlib/plugins/restore_plugin.py @@ -189,7 +189,7 @@ class RestorePlugin(obnamlib.ObnamPlugin): else: return None - return obnamlib.Metdata( + return obnamlib.Metadata( st_atime_sec=K(obnamlib.REPO_FILE_ATIME_SEC), st_atime_nsec=K(obnamlib.REPO_FILE_ATIME_NSEC), st_mtime_sec=K(obnamlib.REPO_FILE_MTIME_NSEC), @@ -205,7 +205,8 @@ class RestorePlugin(obnamlib.ObnamPlugin): username=K(obnamlib.REPO_FILE_USERNAME), groupname=K(obnamlib.REPO_FILE_GROUPNAME), target=K(obnamlib.REPO_FILE_SYMLINK_TARGET), - xattr=K(obnamlib.REPO_FILE_XATTR), + xattr=K(obnamlib.REPO_FILE_XATTR_BLOB), + md5=K(obnamlib.REPO_FILE_MD5), ) def restore_safely(self, gen, pathname): @@ -297,6 +298,7 @@ class RestorePlugin(obnamlib.ObnamPlugin): correct_checksum = metadata.md5 if summer.digest() != correct_checksum: msg = 'File checksum restore error: %s' % filename + msg += '(%s vs %s)' % (summer.digest(), correct_checksum) logging.error(msg) self.app.ts.notify(msg) self.errors = True |