Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329803 - --depclean could optionally display atoms instead of multiline cat/pkg\nversion
Summary: --depclean could optionally display atoms instead of multiline cat/pkg\nversion
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 335925
  Show dependency tree
 
Reported: 2010-07-25 17:27 UTC by Jeroen Roovers (RETIRED)
Modified: 2010-09-04 08:41 UTC (History)
1 user (show)

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 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-25 17:27:38 UTC
Instead of the current:

 dev-util/automoc
    selected: 0.9.88 
   protected: none 
     omitted: none

it would be wonderful if --depclean wrote:

=dev-util/automoc-0.9.88 

to have a machine readable format to easily use in an `emerge -C' script or oneliner.
Comment 1 Sebastian Luther (few) 2010-07-25 18:41:03 UTC
You suggest to remove the omitted/protected part completely? I think this is useful for the user to validate the unmerge list.

What we could do is to print a proper atom instead of the version:

dev-util/automoc
    selected: =dev-util/automoc-0.9.88
   protected: none 
     omitted: none

Is this good enough?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-25 18:45:34 UTC
It could do both of course.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-25 19:03:33 UTC
(In reply to comment #1)
> You suggest to remove the omitted/protected part completely? I think this is
> useful for the user to validate the unmerge list.
> 
> What we could do is to print a proper atom instead of the version:
> 
> dev-util/automoc
>     selected: =dev-util/automoc-0.9.88
>    protected: none 
>      omitted: none
> 
> Is this good enough?

That's a lot more usable. Even better would be if it compacted multiple SLOTs into a single message.

How about, instead of:

- - - - - - -

sys-devel/autoconf
    selected: 2.13 
   protected: none
     omitted: 2.65

- - - - - - -

simply this:

- - - - - - -
[perhaps with one newline here for human-readability]
    selected: sys-devel/autoconf-2.13 [...]
   protected: [...]
     omitted: sys-devel/autoconf-2.65 [...]
- - - - - - -

and display each line only when not empty?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-07-25 19:07:21 UTC
Better yet:

- - - - - - -
[perhaps with one newline here for human-readability]
    selected: sys-devel/automake-1.4_p6-r1
    selected: sys-devel/automake-1.5-r1
    selected: sys-devel/automake-1.7.9-r2
{   protected: [...] }
     omitted: sys-devel/automake-1.11.1
- - - - - - -
Comment 5 Zac Medico gentoo-dev 2010-07-25 19:58:45 UTC
There's a fix here:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=09e9fdb2d4ceca02ba861ce02e85426dfce7d2af

(In reply to comment #4)
My feeling is that if we try to mix human readable + machine readable, then we do both poorly.
Comment 6 Zac Medico gentoo-dev 2010-08-23 06:31:22 UTC
This is in 2.2_rc68, but I'll leave this bug open until it's in an unmasked version.
Comment 7 Zac Medico gentoo-dev 2010-09-04 08:41:03 UTC
This is fixed in 2.1.9.