Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29574 - [etcat] etcat can't handle + in regex string
Summary: [etcat] etcat can't handle + in regex string
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-25 03:38 UTC by Narada Sage
Modified: 2005-04-23 07:52 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 Narada Sage 2003-09-25 03:38:41 UTC
# etcat -f bonnie++
Traceback (most recent call last):
  File "/usr/bin/etcat", line 1105, in ?
    main()
  File "/usr/bin/etcat", line 1101, in main
    function(query)
  File "/usr/bin/etcat", line 988, in files
    matches = search(tup[1])
  File "/usr/bin/etcat", line 298, in search
    if re.search(search_key.lower(), package_parts[1].lower()):
  File "/usr/lib/python2.2/sre.py", line 137, in search
    return _compile(pattern, flags).search(string)
  File "/usr/lib/python2.2/sre.py", line 229, in _compile
    raise error, v # invalid expression
sre_constants.error: multiple repeat

$ emerge info
Portage 2.0.49-r6 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test5-bk4)
=================================================================
System uname: 2.6.0-test5-bk4 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
distcc 2.7.1 i686-pc-linux-gnu (protocol 1) (default port 3632) [disabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no/ http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://www.fhh.opensource-mirror.de/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.caliu.info/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 oss avi cups encode foomaticdb gif java jpeg mad mmx mpeg ncurses pdflib png quicktime truetype xml2 xmms xv zlib directfb alsa berkdb slang readline tetex aalib svga tcltk mysql X sdl gpm tcpd pam libwww perl python imlib oggvorbis gtk motif opengl cdr acpi acpi4linux apache2 dvd faad fbcon gtk2 imap maildir nptl openal sse tiff usb xml -apm -crypt -kde -libg++ -mikmod -nls -spell -gtkhtml -gdbm -arts -bonobo -guile -ssl -esd -gnome -qt"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-10-07 12:16:44 UTC
hrmm .. looks like it doesn't like "+" because it isn't regex. i'm tempted
not to fix it but output a warning. because i often use the fact that it
accepts regex rather than just normal search strings.
Comment 2 Narada Sage 2003-10-07 15:55:55 UTC
Whatever you feel best.  Just letting you know.  That traceback error looks
horrid.  :)
Comment 3 Narada Sage 2003-10-07 15:56:44 UTC
Same for `etcat -f mysql++`.
Comment 4 Daniel Albuschat 2003-12-04 10:54:19 UTC
Use 
   etcat -f bonnie\\+\\+
or 
   etcat -f mysql\\+\\+ 
respectively instead, to escape the +.

But why does it brake anyways?
Comment 5 Luciano Tolomei 2004-09-05 05:06:30 UTC
on my system with gentoolkit 0.2.0_pre8
there is no problem.

etcat -v mysql++
[ Results for search key           : mysql++ ]
[ Candidate applications found : 7 ]

 Only printing found installed programs.

*  dev-db/mysql++ :
        [M~ ] 1.7.9 (0)
        [   ] 1.7.9-r1 (0)
        [   ] 1.7.9-r2 (0)
        [   ] 1.7.9-r3 (0)
        [M~ ] 1.7.9-r4 (0)
        [M~ ] 1.7.9-r5 (0)
        [M~ ] 1.7.9-r6 (0)


plese close the bug.
Comment 6 Minn Myat Soe 2004-12-05 21:52:32 UTC
I'm with 0.2.0-pre8...
-c (changes) option breaks on '+'.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2005-04-23 07:52:18 UTC
old and etcat is obsoleted