chk_updated_info_files: run _unicode_decode on EPREFIX
authorFabian Groffen <grobian@gentoo.org>
Mon, 29 Aug 2011 19:00:10 +0000 (21:00 +0200)
committerFabian Groffen <grobian@gentoo.org>
Mon, 29 Aug 2011 19:00:10 +0000 (21:00 +0200)
Attempt to avoid
TypeError: not all arguments converted during string formatting

pym/_emerge/main.py

index 7aa98529db4ca8359ddd9e0fd6150b7383ec78dc..ec7e0ce930e5a77d3fb1381e62364bba98700114 100644 (file)
@@ -161,7 +161,7 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval):
                                        processed_count += 1
                                        myso = portage.subprocess_getstatusoutput(
                                                "LANG=C LANGUAGE=C %s/usr/bin/install-info " +
-                                               "--dir-file=%s/dir %s/%s" % (EPREFIX, inforoot, inforoot, x))[1]
+                                               "--dir-file=%s/dir %s/%s" % (_unicode_decode(EPREFIX), inforoot, inforoot, x))[1]
                                        existsstr="already exists, for file `"
                                        if myso!="":
                                                if re.search(existsstr,myso):