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'
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.
Will take a look.
I'm seeing the same problem here. Workaround is to use "qpkg -f <file>"
Please commit this.
`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?
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.
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
the correct command in the previous comment should have been: "equery uses =net-misc/asterisk-1.0.2"
This was fixed in gentoolkit-0.2.0