diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-08-19 11:52:39 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-08-19 11:52:39 +0200 |
commit | 5780f81524f0ae0957380b16db586090a181eaa0 (patch) | |
tree | 9bd802a29f38ca463f2dc2fee3e7b0db28ff0adf | |
parent | 1aa2948aaaa2a8e2474918ef57ab84a67d80e804 (diff) | |
download | debian-dedup-5780f81524f0ae0957380b16db586090a181eaa0.tar.gz |
importpkg: don't blacklist boring gzip_sha512 hashes
* In practise there are very few compressed files with trivial hashes.
* Blacklisting these values results in false positives in the gzip
issues.
-rwxr-xr-x | importpkg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/importpkg.py b/importpkg.py index 182ca01..1334dd6 100755 --- a/importpkg.py +++ b/importpkg.py @@ -42,7 +42,8 @@ def gziphash(): hashobj = DecompressedHash(GzipDecompressor(), hashlib.sha512()) hashobj = SuppressingHash(hashobj, (ValueError, zlib.error)) hashobj.name = "gzip_sha512" - return HashBlacklist(hashobj, boring_sha512_hashes) + # don't blacklist boring hashes for gzip to get gzip issues right + return hashobj def pnghash(): hashobj = PNGHash(hashlib.sha512()) |