Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89043 - emerge ripped to high hell, depgraph and graph_display taken out
Summary: emerge ripped to high hell, depgraph and graph_display taken out
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 23:24 UTC by Alec Warner (RETIRED)
Modified: 2005-04-24 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge with way less crap in it. (emerge-hosed.patch,73.77 KB, patch)
2005-04-13 23:27 UTC, Alec Warner (RETIRED)
Details | Diff
The depgraph and graph_display classes + imports (depgraph.py,57.36 KB, application/octet-stream)
2005-04-13 23:29 UTC, Alec Warner (RETIRED)
Details
Anyone else I could take out of emerge without breaking it :) (emerge.py,11.84 KB, application/octet-stream)
2005-04-13 23:29 UTC, Alec Warner (RETIRED)
Details
The 3 combined per jstubbs (emerge-combined.patch,73.79 KB, patch)
2005-04-14 00:10 UTC, Alec Warner (RETIRED)
Details | Diff
I renamed emerge.py to emergelib.py and forgot to change the import lines ;) (emerge-combined.patch,73.80 KB, patch)
2005-04-14 02:35 UTC, Alec Warner (RETIRED)
Details | Diff
Minor fixed and hopefully correct diff flags (emergelib.patch,71.60 KB, patch)
2005-04-17 21:29 UTC, Alec Warner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-13 23:24:01 UTC
This is about 95% there, There are a few configurations that I haven't tested for almost everything here works.  Classes depgraph and graph_display are now in depgraph.py in ../pym.  I also took out most of the other functions from emerge and put them in emerge.py in ../pym.  This is because both depgraph/graph_display and emerge use the auxillary functions, so I pulled them out to make them easier to include.  Emerge itself still has a few functions that require globals that are also still present in the script.

depgraph now gets passed myopts and myparams to make up for those globals.  Depgraph also has another member called favorites, which is set in Emerge via helper function.  

Graph_Display now has myopts and Verbosity as __init__ parameters and as members.

There are a few hacks still present ( syslist, olddbapi? ) that I haven't quite worked out yet and it sure it still a big mess.
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-13 23:27:39 UTC
Created attachment 56229 [details, diff]
emerge with way less crap in it.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-13 23:29:04 UTC
Created attachment 56230 [details]
The depgraph and graph_display classes + imports

this goes in /usr/lib/portage/pym
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-13 23:29:45 UTC
Created attachment 56231 [details]
Anyone else I could take out of emerge without breaking it :)

also goes in /usr/lib/portage/pym
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-13 23:32:45 UTC
Erm, it ate my filenames, damn bugzilla.  The file containing depgraph and graph_display is depgraph.py

The file with all the other crap that used to be in emerge ( the without breaking it one ) is emerge.py

And I meant anything, not Anyone ;P
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-14 00:10:25 UTC
Created attachment 56233 [details, diff]
The 3 combined per jstubbs

I hope I did that right ;)
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-14 02:35:58 UTC
Created attachment 56238 [details, diff]
I renamed emerge.py to emergelib.py and forgot to change the import lines ;)

Also might want to just say screw it to the depgraph.py since it's basically a
part of emergelib, it needs almost everything in emergelib and it has many of
the same imports.  Might consider it in the future.
Comment 7 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-17 21:29:14 UTC
Created attachment 56554 [details, diff]
Minor fixed and hopefully correct diff flags 

The last patch broke emerge info, I mispelled a few things, etc.

All should work now.
Note that the spinner is hardcoded in many places.  edebug also still broken,
sigh.
Comment 8 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-04-24 20:40:53 UTC
screw it, closing because emerge sucks and needs to be rewritten :)