Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26447

Summary: fast-portage and editor
Product: Portage Development Reporter: mathias stearn <mstearn>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal CC: radek
Priority: High    
Version: 2.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: the tarball
the tarball
fixes the bug

Description mathias stearn 2003-08-11 20:15:32 UTC
this is a speed enhanced portage that has a 2x speedup. It also includes a editor 
(which depends on PyQt) that will handle updateing the db. For more info, refer to the 
included readme.
Comment 1 mathias stearn 2003-08-11 20:18:13 UTC
Created attachment 15953 [details]
the tarball
Comment 2 mathias stearn 2003-08-11 20:19:02 UTC
Created attachment 15954 [details]
the tarball
Comment 3 Masatomo Nakano (RETIRED) gentoo-dev 2003-08-12 16:04:14 UTC
hi

I saw the source code and tested it(cdb)
Then I like your patch because it's very simple and effective :)

I have a question.
In portdbapi.aux_get(), why are you omitting many code?

And I found a little problem.
- dbdir=settings["DBDIR"]
+ dbdir=settings["DBDIR"]+"/"

anyway, I think we should include this patch :)
Comment 4 mathias stearn 2003-08-12 20:28:09 UTC
RE: #3 
 
Actually, I just got back from a month long vacation, this is code that was written b4 then, so it 
is based off of 2.0.47-r1.  While I was gone, I did some more work and brought it up to .47-r3. 
Unfortunately, Hotmail lost the file that i emailed my self :( so im waitng for the owner of the 
comp i used to reemail.  
 
As to your bug, thnx for pointing it out, ill be attaching a fixed tarball, with a more apropriate 
default directory (/var/db/cache).  
 
Also, I think the dict is the better option. It is easier to work with, and doesnt add any extra 
deps. The file is also guarenteed by pythin to be cross-platform, and I have no way of testing 
this with cdb. So far, the only reason cdb is still in there is becuase I didnt have the heart to 
delete a week's woth of work that is still working ;). It cauld also stand more testing to 
deturmine which is really fastest. My box is a 3gb p2 400 lappy, which i doubt is a typical 
gentoo box. 
 
Last thing, did you try out the ebuild editor/browser? It my first standalone python prog, so I 
wanna get some opinions. I also think it might be useful to some devs. 
Comment 5 mathias stearn 2003-08-12 22:07:14 UTC
Created attachment 16016 [details]
fixes the bug
Comment 6 Brian Harring (RETIRED) gentoo-dev 2005-02-27 23:21:11 UTC
Forward duping this on bug 83371, the speed up is via a different db backend.
Beyond that, re-open a seperate bug with the portage-editor if you still are looking for it inclussion

*** This bug has been marked as a duplicate of 83371 ***