projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ad891
)
checksum.py: use fchksum.fmd5t directly
author
Zac Medico
<zmedico@gentoo.org>
Sun, 2 Oct 2011 06:31:52 +0000
(23:31 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 2 Oct 2011 06:31:52 +0000
(23:31 -0700)
pym/portage/checksum.py
patch
|
blob
|
history
diff --git
a/pym/portage/checksum.py
b/pym/portage/checksum.py
index 080a6dff30d867bbdedc148fe9166e67063afa8e..9f3d81cff8010e5560cb0eb982e8e5af511c0d87 100644
(file)
--- 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"