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

Bug 153847

Summary: print number of upgrades, downgrades, rebuilds etc. with --verbose
Product: Portage Development Reporter: Bo Ørsted Andresen (RETIRED) <zlin>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: enhancement CC: masterdriverz
Priority: High Keywords: InVCS
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147007    
Attachments: emerge.patch

Description Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-11-02 11:53:55 UTC
I would like emerge to print total number of packages, upgrades, downgrades, new slots, new packages, rebuilds and blocks in the same spot where it currently prints total size of downloads when --verbose is enabled.

Like this:

"Total: 10 packages, size of downloads: 0 kB (8 upgrades, 1 downgrade, 1 rebuild)"
Comment 1 Bo Ørsted Andresen (RETIRED) gentoo-dev 2006-11-02 11:55:26 UTC
Created attachment 101069 [details, diff]
emerge.patch
Comment 2 Zac Medico gentoo-dev 2006-11-03 13:30:50 UTC
I like the general idea. I think we'll want to encapsulate that counters and display logic into a class though. Then the incrementation code will look something like counters.rebuilds += 1 and the string can be generated inside the new class so the we just call something like str(counters) to generate the string.
Comment 3 Zac Medico gentoo-dev 2006-11-06 22:00:48 UTC
Thanks! I've committed a slightly modified version of you patch in svn r4970.
Comment 4 Zac Medico gentoo-dev 2006-11-07 15:45:40 UTC
This has been released in 2.1.2_rc1-r5.