commit:     db78fff2ffc15c5e245d87c2944c869dbe260a78
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 21 17:48:11 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 17:48:53 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=db78fff2

FilenameHashLayout.get_filenames: force UTF8 encoding for iglob argument

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/portage/package/ebuild/fetch.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/package/ebuild/fetch.py 
b/lib/portage/package/ebuild/fetch.py
index ac25e4326..cf073436e 100644
--- a/lib/portage/package/ebuild/fetch.py
+++ b/lib/portage/package/ebuild/fetch.py
@@ -307,7 +307,7 @@ class FilenameHashLayout(object):
                        c = c // 4
                        pattern += c * '[0-9a-f]' + '/'
                pattern += '*'
-               for x in glob.iglob(os.path.join(distdir, pattern)):
+               for x in 
glob.iglob(portage._unicode_encode(os.path.join(distdir, pattern), 
errors='strict')):
                        try:
                                yield portage._unicode_decode(x, 
errors='strict').rsplit('/', 1)[1]
                        except UnicodeDecodeError:

Reply via email to