diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-01 23:31:52 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-01 23:31:52 -0700 |
commit | a1ed3230d6a121fb2bccc0a1d51255cae382ed4f (patch) | |
tree | d70b661ae6978a7d615662bc14029814c78b764c | |
parent | 06ad8911b5790a2ed963fe1b981751ab0a2be8d5 (diff) | |
download | portage-a1ed3230d6a121fb2bccc0a1d51255cae382ed4f.tar.gz portage-a1ed3230d6a121fb2bccc0a1d51255cae382ed4f.tar.bz2 portage-a1ed3230d6a121fb2bccc0a1d51255cae382ed4f.zip |
checksum.py: use fchksum.fmd5t directly
-rw-r--r-- | pym/portage/checksum.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index 080a6dff3..9f3d81cff 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -133,10 +133,7 @@ if "WHIRLPOOL" not in hashfunc_map: # Use python-fchksum if available, prefer it over all other MD5 implementations try: - import fchksum - - def md5hash(filename): - return fchksum.fmd5t(filename) + from fchksum import fmd5t as md5hash hashfunc_map["MD5"] = md5hash hashorigin_map["MD5"] = "python-fchksum" |