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

Bug 621324

Summary: group multiple slots on --depclean
Product: Portage Development Reporter: Bodo Thiesen <bothie>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement CC: tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bodo Thiesen 2017-06-09 17:29:36 UTC
I'm going to depclean and while going over the list, I see things like this:

 sys-devel/automake
    selected: 1.9.6-r3 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.10.3 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.12.6 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.13.4 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

 sys-devel/automake
    selected: 1.14.1 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 

For all slots, that will remain installed, only one line "omitted" is printed listing all version, but for all version to be unmerged, the group will be repeated. I'd like to see this collapsed into one group like so:

 sys-devel/automake
    selected: 1.9.6-r3 1.10.3 1.12.6 1.13.4 1.14.1 
   protected: none 
     omitted: 1.11.6-r1 1.15-r2 


Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2017-06-09 20:45:39 UTC
The thing is, the list is ordered based on dependencies, so your desired output could conflict with the ordering constraint.
Comment 2 Bodo Thiesen 2017-06-10 20:43:01 UTC
Ok, so, question: Does ordering matter at all? (It doesn't to me, up to now I didn't even know there is an intended ordering at all.)

And even if it does: At least if dep order wouldn't conflict (like in the easy cases of multiple slots of the same package following immediatelly on each other), the collapsing should be done.