equery 0.1.3 (part of gentoolkit-0.2.0-r2) fails with what I - an interested layman without any knowledge of Python - guess is some sort of unhandled exception. When supplying a pkgspec that matches against /.*-[0-9]+$/ (e. g. xchat-2) to one of the "which", "depgraph", "uses" or "files"-function, equery exits unsuccessfully with: #----- begin of listing -----# !!! 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 #----- end of listing -----# Other equery-function, like "depends", seem not to be affected at all by this issue.
A clear error message is given with equery 0.14: $ equery which xchat-2 !!! Invalid syntax: missing operator !!! If you want only specific versions please use one of !!! the following operators as prefix for the package name: !!! > >= = <= < !!! Example to only match gcc versions greater or equal 3.2: !!! >=sys-devel/gcc-3.2 !!! !!! Note: The symbols > and < are used for redirection in the shell !!! and must be quoted if either one is used. This is with gentoolkit 0.2.1 (and higher), which is marked stable for all archs, so please upgrade. *** This bug has been marked as a duplicate of 76676 ***