summaryrefslogtreecommitdiffstats
path: root/pym/portage/checksum.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/checksum.py')
-rw-r--r--pym/portage/checksum.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py
index 501ae3e6a..5def1ac8a 100644
--- a/pym/portage/checksum.py
+++ b/pym/portage/checksum.py
@@ -6,6 +6,7 @@
import portage
from portage.const import PRIVATE_PATH,PRELINK_BINARY,HASHING_BLOCKSIZE
from portage import os
+from portage import _merge_encoding
from portage import _unicode_encode
import errno
import stat
@@ -117,6 +118,9 @@ if os.path.exists(PRELINK_BINARY):
def perform_md5(x, calc_prelink=0):
return perform_checksum(x, "MD5", calc_prelink)[0]
+def _perform_md5_merge(x, **kwargs):
+ return perform_md5(_unicode_encode(x, encoding=_merge_encoding), **kwargs)
+
def perform_all(x, calc_prelink=0):
mydict = {}
for k in hashfunc_map: