Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32871 - "etcat -v 4stattack" gives traceback error
Summary: "etcat -v 4stattack" gives traceback error
Status: RESOLVED FIXED
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:
: 33402 37921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-06 05:47 UTC by Alexandru Toma
Modified: 2004-01-11 18:21 UTC (History)
3 users (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 Alexandru Toma 2003-11-06 05:47:12 UTC
Instead of showing the version information etcat -v 4stattack gives a traceback
error.

Reproducible: Always
Steps to Reproduce:
1. etcat -v 4stattack
2.
3.

Actual Results:  
bash-2.05b# etcat -v 4stattack
[ Results for search key : 4stattack ]
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 503, in versions
    print "[ Applications found : " + white(str(len(matches))) + " ]"
UnboundLocalError: local variable 'matches' referenced before assignment


bash-2.05b# emerge --info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gaming-r3)
=================================================================
System uname: 2.4.20-gaming-r3 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.3.10
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://ftp.lug.ro/gentoo http://gento.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt cups encode foomaticdb jpeg mad mikmod mpeg ncurses nls
pdflib png quicktime spell truetype xml2 xmms xv zlib slang readline svga tcltk
guile X sdl gpm tcpd pam libwww ssl perl imlib oggvorbis motif opengl -gnome
-kde -gtk -qt -arts -esd -oss -berkdb -java -gdbm -libg++ python alsa sse 3dnow
mmx aalib xvid gif tiff apache2 mysql gd curl gtk2"
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-11-06 11:27:17 UTC
liquidx: adding `matches = []` in line 497 fixes that, I'll leave it to you
to commit it as I'm not familiar with your indentation style and probably
screw something up.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2003-11-13 10:09:35 UTC
*** Bug 33402 has been marked as a duplicate of this bug. ***
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-01-08 18:24:34 UTC
fixed in 0.2 series of gentoolkit
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-01-11 18:21:55 UTC
*** Bug 37921 has been marked as a duplicate of this bug. ***