diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-12-24 00:33:45 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-12-28 21:51:24 +0000 |
commit | 0e8ffe0e4209fab408571d3986c3bf03957ef038 (patch) | |
tree | 8fdbd9387a428785bc18f910f521bdb8ce216564 | |
parent | 4bbd6fde805bdf276dc0a31b90d7696c95a458ed (diff) | |
download | obnam-0e8ffe0e4209fab408571d3986c3bf03957ef038.tar.gz |
Remove now-unused construct_metadata_object
-rw-r--r-- | obnamlib/plugins/verify_plugin.py | 29 | ||||
-rw-r--r-- | test-gpghome/random_seed | bin | 600 -> 600 bytes |
2 files changed, 0 insertions, 29 deletions
diff --git a/obnamlib/plugins/verify_plugin.py b/obnamlib/plugins/verify_plugin.py index 358c50f8..a07dbe3d 100644 --- a/obnamlib/plugins/verify_plugin.py +++ b/obnamlib/plugins/verify_plugin.py @@ -237,32 +237,3 @@ class VerifyPlugin(obnamlib.ObnamPlugin): yield arg else: yield arg - - def construct_metadata_object(self, gen, filename): - # FIXME: this is duplicate code. - allowed = set(self.repo.get_allowed_file_keys()) - def K(key): - if key in allowed: - return self.repo.get_file_key(gen, filename, key) - else: - return None - - 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_SEC), - st_mtime_nsec=K(obnamlib.REPO_FILE_MTIME_NSEC), - st_blocks=K(obnamlib.REPO_FILE_BLOCKS), - st_dev=K(obnamlib.REPO_FILE_DEV), - st_gid=K(obnamlib.REPO_FILE_GID), - st_ino=K(obnamlib.REPO_FILE_INO), - st_mode=K(obnamlib.REPO_FILE_MODE), - st_nlink=K(obnamlib.REPO_FILE_NLINK), - st_size=K(obnamlib.REPO_FILE_SIZE), - st_uid=K(obnamlib.REPO_FILE_UID), - 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_BLOB) or None, - md5=K(obnamlib.REPO_FILE_MD5), - ) diff --git a/test-gpghome/random_seed b/test-gpghome/random_seed Binary files differindex 2807e460..b4fb175b 100644 --- a/test-gpghome/random_seed +++ b/test-gpghome/random_seed |