Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 135098 Details for
Bug 197932
sys-apps/portage-2.1.3.17 traceback on p.masked package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the KeyError
r0.patch (text/plain), 1.10 KB, created by
Zac Medico
on 2007-11-03 16:42:07 UTC
(
hide
)
Description:
fix the KeyError
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-11-03 16:42:07 UTC
Size:
1.10 KB
patch
obsolete
>Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 8390) >+++ pym/portage.py (revision 8393) >@@ -5307,18 +5307,17 @@ > order. It sorts in place and returns None. > """ > if len(cpv_list) > 1: >- first_split = catpkgsplit(cpv_list[0]) >- cat = first_split[0] >- cpv_list[0] = first_split[1:] >- for i in xrange(1, len(cpv_list)): >- cpv_list[i] = catpkgsplit(cpv_list[i])[1:] >+ # If the cpv includes explicit -r0, it has to be preserved >+ # for consistency in findname and aux_get calls, so use a >+ # dict to map strings back to their original values. >+ str_map = {} >+ for i, cpv in enumerate(cpv_list): >+ mysplit = tuple(catpkgsplit(cpv)[1:]) >+ str_map[mysplit] = cpv >+ cpv_list[i] = mysplit > cpv_list.sort(pkgcmp) >- for i, (pn, ver, rev) in enumerate(cpv_list): >- if rev == "r0": >- cpv = cat + "/" + pn + "-" + ver >- else: >- cpv = cat + "/" + pn + "-" + ver + "-" + rev >- cpv_list[i] = cpv >+ for i, mysplit in enumerate(cpv_list): >+ cpv_list[i] = str_map[mysplit] > > def cpv_all(self): > cpv_list = []
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 197932
:
135059
|
135061
|
135062
|
135065
|
135067
| 135098