Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 200787 Details for
Bug 280962
sys-apps/portage-2.2_rc37 produces a malformed sets list
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix set names (path normalization issue)
fix_set_names.patch (text/plain), 1.13 KB, created by
Zac Medico
on 2009-08-10 07:15:08 UTC
(
hide
)
Description:
fix set names (path normalization issue)
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-08-10 07:15:08 UTC
Size:
1.13 KB
patch
obsolete
>Index: pym/portage/sets/files.py >=================================================================== >--- pym/portage/sets/files.py (revision 13973) >+++ pym/portage/sets/files.py (revision 13974) >@@ -126,17 +126,18 @@ > except KeyError: > raise SetConfigError(_("Could not find repository '%s'") % match.groupdict()["reponame"]) > >- if isinstance(directory, unicode): >- # Avoid UnicodeDecodeError raised from >- # os.path.join when called by os.walk. >- directory_unicode = directory >- directory = directory.encode('utf_8', 'replace') >- else: >- directory_unicode = unicode(directory, >- encoding='utf_8', errors='replace') >- > if os.path.isdir(directory): > directory = normalize_path(directory) >+ >+ if isinstance(directory, unicode): >+ # Avoid UnicodeDecodeError raised from >+ # os.path.join when called by os.walk. >+ directory_unicode = directory >+ directory = directory.encode('utf_8', 'replace') >+ else: >+ directory_unicode = unicode(directory, >+ encoding='utf_8', errors='replace') >+ > for parent, dirs, files in os.walk(directory): > if not isinstance(parent, unicode): > parent = unicode(parent,
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 280962
:
200781
|
200782
| 200787