diff --git a/tools/tree-diff b/tools/tree-diff index 1c841e53..0ebefe7f 100755 --- a/tools/tree-diff +++ b/tools/tree-diff @@ -6,6 +6,14 @@ import hashlib import json import os +TIMESTAMPED_FILES = [ + "aux-cache", + "rpmdb.sqlite", + "cacerts", + "shadow", + "shadow-", +] + def hash_file(fd): BLOCK_SIZE = 4096 @@ -64,7 +72,10 @@ def content_diff(name, dir_fd1, dir_fd2, path, differences): if hash1 != hash2: props = differences.setdefault(path, {}) - props["content"] = [hash1, hash2] + if name in TIMESTAMPED_FILES: + props["content"] = [None, None] + else: + props["content"] = [hash1, hash2] finally: os.close(fd1) os.close(fd2)