commit:     3e5a2b3057bd77f965b30a80e4e914d428ad6617
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 12 14:23:21 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 13 21:46:29 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=3e5a2b30

portage.checksum: Remove python-fchksum support

Remove the support for MD5 implementation from python-fchksum package.
The package is rarely installed, supports Python 2.7 only and the code
handles checksumming a whole file only.

 pym/portage/checksum.py | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
index 3e61acdec..9f88f7e65 100644
--- a/pym/portage/checksum.py
+++ b/pym/portage/checksum.py
@@ -19,7 +19,7 @@ import tempfile
 # most preferred first. Please keep this in sync with logic below.
 # ================================================================
 #
-# MD5: python-fchksum, hashlib, mhash
+# MD5: hashlib, mhash
 # SHA1: hashlib, mhash
 # SHA256: hashlib, pycrypto, mhash
 # SHA512: hashlib, mhash
@@ -186,15 +186,6 @@ if "WHIRLPOOL" not in hashfunc_map:
        from portage.util.whirlpool import new as _new_whirlpool
        whirlpoolhash = _generate_hash_function("WHIRLPOOL", _new_whirlpool, 
origin="bundled")
 
-# Use python-fchksum if available, prefer it over all other MD5 implementations
-try:
-       from fchksum import fmd5t as md5hash
-       hashfunc_map["MD5"] = md5hash
-       hashorigin_map["MD5"] = "python-fchksum"
-
-except ImportError:
-       pass
-
 # There is only one implementation for size
 def getsize(filename):
        size = os.stat(filename).st_size

Reply via email to