From 5780f81524f0ae0957380b16db586090a181eaa0 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 19 Aug 2013 11:52:39 +0200 Subject: 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. --- importpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- cgit v1.2.3