Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38582 - etcat 0.3.1 gives ValueError traceback
Summary: etcat 0.3.1 gives ValueError traceback
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-18 02:09 UTC by Jonathan Hitchcock
Modified: 2004-01-22 23:20 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 Jonathan Hitchcock 2004-01-18 02:09:40 UTC
# etcat -v aterm
Traceback (most recent call last):
  File "/usr/bin/etcat", line 642, in ?
    main()
  File "/usr/bin/etcat", line 638, in main
    function(query)
  File "/usr/bin/etcat", line 246, in versions
    matches = gentoolkit.find_packages(query)
  File "/usr/lib/gentoolkit/pym/gentoolkit.py", line 187, in find_packages
    t=portage.portdb.match(search_key)
  File "/usr/lib/portage/pym/portage.py", line 4601, in match
    return self.xmatch("match-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 4568, in xmatch
    mydep=dep_expand(origdep,self)
  File "/usr/lib/portage/pym/portage.py", line 3041, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/portage/pym/portage.py", line 2985, in cpv_expand
    raise ValueError, matches
ValueError: ['dev-libs/aterm', 'x11-terms/aterm']


The same happens for 'etcat -c aterm'.  Other packages work fine, possibly because there aren't two packages in two different categories with the same name?

# emerge -p aterm

These are the packages that I would merge, in order:

Calculating dependencies   

!!! The short ebuild name "aterm" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    dev-libs/aterm
    x11-terms/aterm


# emerge info
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1)
=================================================================
System uname: 2.6.1 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://ftp.rucus.ru.ac.za/pub/linux/gentoo http://csmsc04.ict.ru.ac.za http://zion.ru.ac.za ftp://ftp.is.co.za/linux/distributions/gentoo ftp://trumpetti.atm.tut.fi/gentoo/ ftp://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.rucus.ru.ac.za/gentoo-portage"
USE="X aalib acl alsa amd apm arts autofs avi berkdb bonobo crypt cups curl directfb doc encode esd faad flash foomaticdb gd gdbm ggi gif gnome gpm gtk gtk2 gtkhtml guile i8x0 imlib ipv6 java javascript jpeg kde lcms libg++ libwww mad maildir mikmod motif mozcalendar mozilla mozinterfaceinfo moznocompose moznoirc mozxmlterm mpeg mysql nas ncurses nls offensive oggvorbis opengl oss pam parse-clocks pdflib perl php pic png python qt quicktime readline samba sdl slang slp snmp spell ssl svga tcltk tcpd tetex transparent-proxy truetype unicode usagi vim-with-x wmf wxwindows x86 xml xml2 xmms xosd xv zlib"
Comment 1 Derk W te Bokkel 2004-01-20 11:10:09 UTC
shows a missing operator error with trailing partial version number


etcat -v links-2
Traceback (most recent call last):
  File "/usr/bin/etcat", line 642, in ?
    main()
  File "/usr/bin/etcat", line 638, in main
    function(query)
  File "/usr/bin/etcat", line 246, in versions
    matches = gentoolkit.find_packages(query)
  File "/usr/lib/gentoolkit/pym/gentoolkit.py", line 187, in find_packages
    t=portage.portdb.match(search_key)
  File "/usr/lib/portage/pym/portage.py", line 4601, in match
    return self.xmatch("match-visible",mydep)
  File "/usr/lib/portage/pym/portage.py", line 4588, in xmatch
    myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
  File "/usr/lib/portage/pym/portage.py", line 3258, in match_from_list
    raise KeyError, "Specific key requires an operator (%s)" % (mydep)
KeyError: 'Specific key requires an operator (net-www/links-2)'

without the trailing numbers is fine .. parser should be able to handle this case without failing

 etcat -v links
[ Results for search key           : links ]
[ Candidate applications found : 5 ]
 
 Only printing found installed programs.
 
*  net-www/links-0.96-r2 :
        [   ] 0.96-r2 (0)
 
*  net-www/links-2.1_pre9 :
        [   ] 2.1_pre9 (2)
 
*  net-www/links-2.1_pre11 :
        [   ] 2.1_pre11 (2)
 
*  net-www/links-2.1_pre13 :
        [ ~ ] 2.1_pre13 (2)
 
*  net-www/links-2.1_pre14 :
        [ ~ ] 2.1_pre14 (2)
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-01-22 23:20:06 UTC
pre5 is out now