Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292910 - sys-apps/portage-2.2_rc49 emerge --search gives strange output when output is not a tty
Summary: sys-apps/portage-2.2_rc49 emerge --search gives strange output when output is...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 288499
  Show dependency tree
 
Reported: 2009-11-12 12:15 UTC by Albert W. Hopkins
Modified: 2009-11-16 01:52 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 Albert W. Hopkins 2009-11-12 12:15:09 UTC
I have found strange behavior when using "emerge --search".  Basically when the output device is a tty then it looks like this:

$ emerge -s pidgin
Searching...    
[ Results for search key : pidgin ]
[ Applications found : 14 ]
 
*  app-accessibility/pidgin-festival
      Latest version available: 2.2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 344 kB
      Homepage:      http://pidgin.festival.sourceforge.net
      Description:   A plugin for pidgin which enables text-to-speech output of conversations using festival.
      License:       GPL-2

*  net-im/pidgin
      Latest version available: 2.6.3
      Latest version installed: 2.6.3
      Size of files: 8,880 kB
      Homepage:      http://pidgin.im/
      Description:   GTK Instant Messenger client
      License:       GPL-2

[...]

However, when the output device is not tty then certain fields are printed.  It's hard to explain without an example:

$ emerge -s pidgin |cat
Searching...          Homepage:      http://pidgin.festival.sourceforge.net
      Description:   A plugin for pidgin which enables text-to-speech output of conversations using festival.
      License:       GPL-2

      Homepage:      http://pidgin.im/
      Description:   GTK Instant Messenger client
      License:       GPL-2

      Homepage:      http://pidgin-encrypt.sourceforge.net/
      Description:   Pidgin IM Encryption PlugIn
      License:       GPL-2

[...]

      Homepage:      http://pidgin.im/
      Description:   Pidgin smiley themes
      License:       as-is
                                                                                
[ Results for search key : pidgin ]
[ Applications found : 14 ]
 
*  app-accessibility/pidgin-festival
      Latest version available: 2.2-r1
      Latest version installed: [ Not Installed ]
      Size of files: 344 kB
*  net-im/pidgin
      Latest version available: 2.6.3
      Latest version installed: 2.6.3
      Size of files: 8,880 kB
*  x11-plugins/pidgin-encryption
      Latest version available: 3.0
      Latest version installed: [ Not Installed ]
      Size of files: 572 kB

When the output is not a tty it is not easily human- (or machine-) readable because one must scroll to two different areas in the out put to find out about each package.

This is portage 2.2_rc49.  Others versions may be affected as well (haven't tested).
Comment 1 Zac Medico gentoo-dev 2009-11-12 23:38:00 UTC
This is fixed in svn r14818.
Comment 2 Zac Medico gentoo-dev 2009-11-16 01:19:21 UTC
This is fixed in portage-2.1.7.5 and 2.2_rc50.
Comment 3 Albert W. Hopkins 2009-11-16 01:52:11 UTC
Thank you :-)