Decode git output in _emerge.actions.git_sync_timestamps() for bug #291790.
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Wed, 4 Nov 2009 21:48:41 +0000 (21:48 -0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Wed, 4 Nov 2009 21:48:41 +0000 (21:48 -0000)
svn path=/main/trunk/; revision=14777

pym/_emerge/actions.py

index bd668985f02c888d3d9fe46b084495378950b9a6..7f728cef69e4f3b8549ea87851be14b5e3efcb99 100644 (file)
@@ -24,6 +24,7 @@ from itertools import chain
 import portage
 from portage import os
 from portage import digraph
+from portage import _unicode_decode
 from portage.cache.cache_errors import CacheError
 from portage.const import NEWS_LIB_PATH
 from portage.output import blue, bold, colorize, create_color_func, darkgreen, \
@@ -2465,7 +2466,7 @@ def git_sync_timestamps(settings, portdir):
                portage._shell_quote(portdir)]
        import subprocess
        proc = subprocess.Popen(args, stdout=subprocess.PIPE)
-       modified_files = set(l.rstrip("\n") for l in proc.stdout)
+       modified_files = set(_unicode_decode(l).rstrip("\n") for l in proc.stdout)
        rval = proc.wait()
        if rval != os.EX_OK:
                return rval