Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 211737 Details for
Bug 295351
dependency calculation exception raised with Python 2.6 and 3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix the TypeError
update_dbentries.patch (text/plain), 1.01 KB, created by
Zac Medico
on 2009-12-02 07:01:09 UTC
(
hide
)
Description:
Fix the TypeError
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2009-12-02 07:01:09 UTC
Size:
1.01 KB
patch
obsolete
>Index: pym/portage/update.py >=================================================================== >--- pym/portage/update.py (revision 14920) >+++ pym/portage/update.py (revision 14921) >@@ -63,15 +63,19 @@ > k_unicode = _unicode_decode(k, > encoding=_encodings['repo.content'], errors='replace') > if k_unicode not in ignored_dbentries: >+ orig_content = mycontent > mycontent = _unicode_decode(mycontent, > encoding=_encodings['repo.content'], errors='replace') >+ is_encoded = mycontent is not orig_content > orig_content = mycontent > for update_cmd in update_iter: > mycontent = update_dbentry(update_cmd, mycontent) > if mycontent != orig_content: >- updated_items[k] = _unicode_encode(mycontent, >- encoding=_encodings['repo.content'], >- errors='backslashreplace') >+ if is_encoded: >+ mycontent = _unicode_encode(mycontent, >+ encoding=_encodings['repo.content'], >+ errors='backslashreplace') >+ updated_items[k] = mycontent > return updated_items > > def fixdbentries(update_iter, dbdir):
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 295351
:
211736
| 211737