Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 109802

Summary: equery does not have regex parameter checking
Product: Gentoo Linux Reporter: bohux <limuhob>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description bohux 2005-10-19 06:07:00 UTC
equery does not have a regex parametr checking. It may be user-friendly. 

Reproducible: Always
Steps to Reproduce:
1. equery list "**"
2.
3.

Actual Results:  
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: multiple repeat


Expected Results:  
inform a user about a bad regexp parameter.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo/"
LANG="cs_CZ"
LINGUAS="cs"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl
dvd dvdr eds emboss encode esd fam foomaticdb fortran gdbm gif gnome gpm
gstreamer gtk gtk2 imagemagick imlib innodb ipv6 java jpeg kde libg++ libwww mad
mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls nptl ogg oggvorbis opengl
oss pam pdflib perl pic png python qt quicktime readline samba sdl slang spell
sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2
xmms xv zlib linguas_cs userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS


equery -V >> equery(0.1.3) - Gentoo Package Query Tool
Comment 1 Paul Varner (RETIRED) gentoo-dev 2005-10-19 09:00:25 UTC

*** This bug has been marked as a duplicate of 109392 ***