Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792 - emerge --search barfing
Summary: emerge --search barfing
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-21 00:09 UTC by Seemant Kulleen
Modified: 2011-10-30 22:21 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 Seemant Kulleen 2002-02-21 00:09:15 UTC
Hi again to my Gentoo friends,

I have noticed that every time I do an "emerge --search glib" I get this output
at the end.  It is supposed to find 4 (and indeed it claims that 4 have been
found), but then I get the error at the end instead of the 4th one. What gives?
 Is this a known bug?  Is it a bug?


Thanks again,

Seemant

[ Results for search key : glib ]
[ Applications found : 4 ]
 
*   dev-libs/glib 
      Latest version Available:  1.2.10-r2
      Latest version Installed:  1.2.10-r2
      Description:  The GLib library of C routines
 
*   gnome-extra/glibwww 
      Latest version Available:  0.2-r2
      Latest version Installed:  [ Not Installed ]
      Description:  The Gnome WWW Libraries
 
*   sys-libs/glibc 
      Latest version Available:  2.2.4-r9
      Latest version Installed:  2.2.4-r9
      Description:  GNU libc6 (also called glibc2) C library



Traceback (most recent call last):
  File "/usr/sbin/emerge", line 641, in ?
    searchinstance.output()
  File "/usr/sbin/emerge", line 61, in output
    full_package = strip(self.treecache.dep_bestmatch(match))
  File "/usr/lib/spython2.0/string.py", line 80, in strip
    return s.strip()
AttributeError: 'None' object has no attribute 'strip'
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-02-21 13:59:50 UTC
edit /usr/sbin/emerge, and after the line:
for match in self.packagematches:

add an indented line:
    print match

Then rerun so we can track down the prob further.
Comment 2 Seemant Kulleen 2002-02-21 16:19:45 UTC
Hi Dr. Robbins,

Between the time I last got this bug and now, I did an emerge --world update,
and nothing more.  All of a sudden, the output is fine.  It finds three and
exits cleanly.  Strange.  I am sorry that I can not reproduce this error...  I
feel like I have wasted your time with it.

Seemant

localhost # emerge --search glib
[ Results for search key : glib ]
[ Applications found : 3 ]
 
*  sys-libs/glibc
      Latest version Available: 2.2.4-r9
      Latest version Installed: 2.2.4-r9
      Description: 
      GNU libc6 (also called glibc2) C library
 
*  dev-libs/glib
      Latest version Available: 1.2.10-r2
      Latest version Installed: 1.2.10-r2
      Description: 
      The GLib library of C routines
 
*  gnome-extra/glibwww
      Latest version Available: 0.2-r2
      Latest version Installed: [ Not Installed ]
      Description: 
      The Gnome WWW Libraries
 
localhost # 
Comment 3 Daniel Robbins (RETIRED) gentoo-dev 2002-02-21 18:35:30 UTC
maybe a flaky ebuild caused it.  Marking as FIXED :)