Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 228149 Details for
Bug 315741
ebuild scripts: UnicodeEncodeError when appending unicode-character path to PORTDIR_OVERLAY
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch fixing the issue with Py2
portage-315741-encode-ebuild_portdir.diff (text/plain), 852 bytes, created by
Michał Górny
on 2010-04-17 13:23:55 UTC
(
hide
)
Description:
Patch fixing the issue with Py2
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2010-04-17 13:23:55 UTC
Size:
852 bytes
patch
obsolete
>commit 376fdbaa1a680ea67fa956e42860de9b669958b8 >Author: MichaŠGórny <gentoo@mgorny.alt.pl> >Date: Sat Apr 17 15:21:09 2010 +0200 > > Encode ebuild_portdir before appending it to PORTDIR_OVERLAY. > >diff --git a/bin/ebuild b/bin/ebuild >index fd87615..495a6bd 100755 >--- a/bin/ebuild >+++ b/bin/ebuild >@@ -131,7 +131,7 @@ ebuild = os.path.join(ebuild_portdir, *ebuild.split(os.path.sep)[-3:]) > # Make sure that portdb.findname() returns the correct ebuild. > if ebuild_portdir not in portage.portdb.porttrees: > os.environ["PORTDIR_OVERLAY"] = \ >- os.environ.get("PORTDIR_OVERLAY","") + " " + ebuild_portdir >+ os.environ.get("PORTDIR_OVERLAY","") + " " + portage._unicode_encode(ebuild_portdir, encoding=portage._encodings['fs']) > print("Appending %s to PORTDIR_OVERLAY..." % ebuild_portdir) > portage.close_portdbapi_caches() > imp.reload(portage) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 315741
: 228149