Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109392 - app-portage/gentoolkit-0.2.0-r2: traceack with "equery list -i <category>/<foo>"
Summary: app-portage/gentoolkit-0.2.0-r2: traceack with "equery list -i <category>/<foo>"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 109802 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-15 13:45 UTC by Toralf Förster
Modified: 2005-11-12 07:59 UTC (History)
1 user (show)

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 Toralf Förster gentoo-dev 2005-10-15 13:45:46 UTC
Without specifying the category equery works without traceback:

tfoerste@n22 ~/workspace/local_bin $ equery --nocolor --quiet list -i "*.tuxracer.*"
 * installed packages
[I--] [  ] games-arcade/tuxracer-0.61-r3 (0)

tfoerste@n22 ~/workspace/local_bin $ equery --nocolor --quiet list -i
"*.games-arcade/tuxracer.*"
Traceback (most recent call last):
  File "/usr/bin/equery", line 1551, in ?
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 1177, in perform
    rx = re.compile(cat + "/" + name + "-" + ver + "(-" + rev + ")?")
  File "/usr/lib/python2.4/sre.py", line 180, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.4/sre.py", line 227, in _compile
    raise error, v # invalid expression
sre_constants.error: nothing to repeat


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Paul Varner (RETIRED) gentoo-dev 2005-10-19 09:00:25 UTC
*** Bug 109802 has been marked as a duplicate of this bug. ***
Comment 2 Paul Varner (RETIRED) gentoo-dev 2005-11-11 11:53:05 UTC
The issue here is that you have an invalid regular expression. I have fixed
equery to not traceback and to print a more helpful message.

I believe that what you intended was:
equery --nocolor --quiet list -i ".*games-arcade/tuxracer.*"

which works as expected.
Comment 3 Toralf Förster gentoo-dev 2005-11-11 12:36:54 UTC
Ah, now I see my mistake :-)
Comment 4 Paul Varner (RETIRED) gentoo-dev 2005-11-12 07:59:37 UTC
Fix is in gentoolkit-0.2.1_rc1