Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536466 - app-portage/genlop-? - genlop -u shows all merges and unmerges (ignores name)
Summary: app-portage/genlop-? - genlop -u shows all merges and unmerges (ignores name)
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-13 11:28 UTC by Simon Bader
Modified: 2019-10-02 21:18 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emergeInfo.txt,4.96 KB, text/plain)
2015-01-13 11:28 UTC, Simon Bader
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Bader 2015-01-13 11:28:03 UTC
Created attachment 393842 [details]
emerge --info output

The unmerge option (-u or --unmerge) should include unmerges of the package that matches name. While it does cause genlop to display unmerges, it makes genlop ignore the 'name' attribute and displays merges and unmerges of all packages.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 15:32:53 UTC
Please post your `emerge -vpq app-portage/genlop' output in a comment.
Comment 2 Simon Bader 2015-01-13 15:35:11 UTC
emerge -vpq app-portage/genlop : 
 [ebuild   R   ] app-portage/genlop-0.30.9-r1
Comment 3 Paul Varner (RETIRED) gentoo-dev 2015-06-24 21:51:23 UTC
After further reviewing the code, this is actually working as designed.  However, I don't like the design since it seems inconsistent to me. 

I'm not extremely active right now due to personal reasons, so unless I get a patch or another developer decides to do this it will probably take awhile for me to get to changing this behavior.
Comment 4 Simon Bader 2015-06-25 06:46:34 UTC
This means that the design has changed without any need and without documentation. I found a computer having an old version of genlop:

eix -I genlop
[D] app-portage/genlop
     Available versions:  *0.30.5 *0.30.7 *0.30.8 *0.30.8-r1 *0.30.8-r2 ~*0.30.9 *0.30.9-r1 **9999 {{bash-completion}}
     Installed versions:  0.30.8-r2(11:32:29 AM 12/07/2009)(-bash-completion)
     Homepage:            http://www.gentoo.org/proj/en/perl
     Description:         A nice emerge.log parser

That version is working correct / as expected:
genlop -u genlop
 * app-portage/genlop

     Mon Dec  7 11:32:29 2009 >>> app-portage/genlop-0.30.8-r2

The man page of both versions did not change about -u:
       -u --unmerge
              display unmerges.

If you want to see all merges and unmerges, you can just use
 genlop -u
without a name.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2015-07-07 21:55:40 UTC
The design was changed with 0.30.9 to make -u act like -l

The problem is that I think we want both the old and new behavior as 'genlop -u' just printed the usage message in 0.30.8.

I will work on fixing it, so that it works both ways (with and without a package name)
Comment 6 Heinrich Götzger 2016-03-11 13:11:41 UTC
How is it possible then to see the unmerges?
Comment 7 Paul Varner (RETIRED) gentoo-dev 2016-03-17 18:36:53 UTC
(In reply to Heinrich Götzger from comment #6)
> How is it possible then to see the unmerges?

Pipe to grep is the way to do it right now.  For example, the following will show all unmerges of the chromium package

genlop -u | fgrep chromium | fgrep '<<<'