Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124101 - equery 0.1.3 command line evaluation malfunction
Summary: equery 0.1.3 command line evaluation malfunction
Status: RESOLVED DUPLICATE of bug 76676
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 13:18 UTC by Johannes Truschnigg
Modified: 2006-02-25 13:45 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 Johannes Truschnigg 2006-02-25 13:18:07 UTC
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.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2006-02-25 13:45:41 UTC
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 ***