Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67210 - equery (from gentoolkit-0.2.0_pre10) belongs traceback
Summary: equery (from gentoolkit-0.2.0_pre10) belongs traceback
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-10-12 03:34 UTC by Aaron Walker (RETIRED)
Modified: 2005-09-15 14:17 UTC (History)
7 users (show)

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


Attachments
Patch to fix "equery belongs foo" (equery.belongs_patch,594 bytes, patch)
2004-10-15 09:15 UTC, Jim Ramsay (lack) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Walker (RETIRED) gentoo-dev 2004-10-12 03:34:05 UTC
equery from gentoolkit-0.2.0_pre10 using 'belongs' action gives the following traceback:

>>> equery belongs /usr/bin/cvs
[ Searching for file(s) /usr/bin/cvs in *... ]
Traceback (most recent call last):
  File "/usr/bin/equery", line 1556, in ?
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 370, in perform
    map(dumpToScreen, matches)
  File "/usr/bin/equery", line 360, in dumpToScreen
    s = pp.cpv(pkg.get_cpv())
AttributeError: 'str' object has no attribute 'get_cpv'
Comment 1 Jim Ramsay (lack) (RETIRED) gentoo-dev 2004-10-15 09:15:10 UTC
Created attachment 41902 [details, diff]
Patch to fix "equery belongs foo"

I was experiencing the same problem, with gentoolkit-0.2.0_pre10 and portage
2.0.51_rc9.

The attached patch seems to fix it.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-10-18 05:26:34 UTC
Will take a look.
Comment 3 Santiago Gala 2004-10-22 13:23:30 UTC
I'm seeing the same problem here. Workaround is to use "qpkg -f <file>"
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-28 23:41:08 UTC
Please commit this.
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2004-10-31 05:57:22 UTC
`equery belongs` with app-portage/gentoolkit-0.2.0_pre10-r1 still does this, so I guess it hasn't been fixed...

What's the status on this?
Comment 6 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-11-08 18:28:26 UTC
This is the result of a speed optimization committed a while back. As we all know, premature optimization is the root of all evil.

We're hacking on it. Sorry for the delay.
Comment 7 Nico Baggus 2004-12-09 13:21:26 UTC
equery also failes at line: 1565 when there is a missing = sign
e.g. ask for "equery uses net-misc/asterisk-1.0.2"
while it should have been: "equery uses net-misc/asterisk-1.0.2"

error:
test src # equery uses net-misc/asterisk-1.0.3
[ Searching for packages matching net-misc/asterisk-1.0.3... ]
!!! Internal portage error, terminating
Traceback (most recent call last):
  File "/usr/bin/equery", line 1565, in ?
    print_error(e)
  File "/usr/lib/gentoolkit/pym/gentoolkit/pprinter.py", line 14, in print_error
    sys.stderr.write(output.red("!!! ") + s + "\n")
TypeError: cannot concatenate 'str' and 'instance' objects
Comment 8 Nico Baggus 2004-12-09 13:24:14 UTC
the correct command in the previous comment should have been: "equery uses =net-misc/asterisk-1.0.2"
Comment 9 Paul Varner (RETIRED) gentoo-dev 2005-09-15 14:17:15 UTC
This was fixed in gentoolkit-0.2.0