Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78224 - emerge --summary output
Summary: emerge --summary output
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-16 08:09 UTC by John Mylchreest (RETIRED)
Modified: 2008-03-02 15:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Mylchreest (RETIRED) gentoo-dev 2005-01-16 08:09:25 UTC
When doing emerge --depclean -pv, you get presented with a nice list of basic system facts.
Something like this might be nice to have as a summary of the portage database.

maybe just something as simple as:

elif "summary"==myaction:
	syslist=getlist("system")
	worldlist=getlist("world")
	myvarlist=portage.vardbapi(portage.root).cp_all()

	if not syslist:
		print "!!! You have no system list. Cannot determine system from world."
	if not worldlist:
		print "!!! You have no world file. Cannot determine explicit merges."
	if not myvarlist:
		print "!!! You have no installed package tree (%s). This is a problem." % portage.VDB_PATH
	if not (syslist and worldlist and myvarlist):
		print
		sys.exit(1)

	print
	print "Packages installed:   "+str(len(myvarlist))
	print "Packages in world:    "+str(len(worldlist))
	print "Packages in system:   "+str(len(syslist))


the more this can be expanded on the better of course.
Looking forward to hearing your views.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-03-22 02:08:25 UTC
*bump*
Thoughts?  Not sure about doing it till emerge gets cleaned up, but it strikes me as sane functionality.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:25:27 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 14:26:42 UTC
Reopening for consideration.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2008-03-02 15:40:35 UTC
Seems like not many people are interested in this, and this will eventually be available via `equery --list-set-contents world | wc -l` (not implemented yet).