Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 203269 Details for
Bug 276813
sys-apps/portage Performance improvement
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
build tuple in one go in catpkgsplit instead of array + extend + tuple()
catpkgsplit_remove_array_extend.patch (text/plain), 665 bytes, created by
Marat Radchenko
on 2009-09-06 13:07:58 UTC
(
hide
)
Description:
build tuple in one go in catpkgsplit instead of array + extend + tuple()
Filename:
MIME Type:
Creator:
Marat Radchenko
Created:
2009-09-06 13:07:58 UTC
Size:
665 bytes
patch
obsolete
>diff --git a/pym/portage/versions.py b/pym/portage/versions.py >index 8a3fe0d..f705e99 100644 >--- a/pym/portage/versions.py >+++ b/pym/portage/versions.py >@@ -274,16 +274,15 @@ def catpkgsplit(mydata,silent=1): > mysplit=mydata.split("/") > p_split=None > if len(mysplit)==1: >- retval=["null"] >+ cat="null" > p_split=pkgsplit(mydata,silent=silent) > elif len(mysplit)==2: >- retval=[mysplit[0]] >+ cat=mysplit[0] > p_split=pkgsplit(mysplit[1],silent=silent) > if not p_split: > catcache[mydata]=None > return None >- retval.extend(p_split) >- retval = tuple(retval) >+ retval = (cat, p_split[0], p_split[1], p_split[2]) > catcache[mydata]=retval > return retval >
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 276813
:
196987
|
197434
|
197437
|
197827
|
198253
|
203267
|
203269
|
203406
|
203509
|
203512
|
203515
|
203519
|
204572
|
204597
|
204673
|
204685
|
204770
|
204883
|
204996
|
205039