Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268895 - [patch] app-portage/gentoolkit-0.3.0_rc5: equery meta traceback
Summary: [patch] app-portage/gentoolkit-0.3.0_rc5: equery meta traceback
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: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2009-05-07 01:44 UTC by Paul Varner (RETIRED)
Modified: 2009-05-18 22:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Make meta get and check package dirs in a manner similar to other gentoolkit scripts (gentoolkit-meta-packagedirfix.patch,3.54 KB, patch)
2009-05-07 03:40 UTC, Douglas Anderson
Details | Diff
Make meta get and check package dirs in a manner similar to other gentoolkit scripts and fix some docstrings (gentoolkit-meta-packagedirfix2.patch,4.95 KB, patch)
2009-05-07 05:00 UTC, Douglas Anderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2009-05-07 01:44:18 UTC
$ equery meta gentoolkit
Traceback (most recent call last):
  File "/usr/bin/equery", line 32, in <module>
    equery.main()
  File "/usr/lib/python2.6/site-packages/gentoolkit/equery/__init__.py", line 394, in main
    loaded_module.main(module_args)
  File "/usr/lib/python2.6/site-packages/gentoolkit/equery/meta.py", line 499, in main
    package_dir = get_package_directory(queries)
  File "/usr/lib/python2.6/site-packages/gentoolkit/equery/meta.py", line 295, in get_package_directory
    pkg = matches.pop()
IndexError: pop from empty list


Reproducible: Always




$ emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_4_CPU_1.80GHz-with-gentoo-1.12.12
Timestamp of tree: Wed, 06 May 2009 08:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/chroot/dns /etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="ccache cvs distlocks fixpackages preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.osuosl.org"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/webapps-experimental /usr/local/portage/layman/sunrise /usr/local/portage/local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 acpi alsa apache2 arts berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdread eds emboss encode evo fam fbcon firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv isdnlog java jpeg kde libnotify logrotate mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection samba sasl sdl session spell spl sse ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vim-syntax vorbis win32codecs x86 xml xorg xscreensaver xulrunner xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPT
Comment 1 Paul Varner (RETIRED) gentoo-dev 2009-05-07 01:46:30 UTC
I'll look at the code later, but it only happens with packages that are also in an overlay or if I type garbage as the pkgspec for the command.
Comment 2 Douglas Anderson 2009-05-07 03:40:25 UTC
Created attachment 190594 [details, diff]
Make meta get and check package dirs in a manner similar to other gentoolkit scripts
Comment 3 Douglas Anderson 2009-05-07 05:00:34 UTC
Created attachment 190598 [details, diff]
Make meta get and check package dirs in a manner similar to other gentoolkit scripts and fix some docstrings

Previous patch didn't work with --current
Comment 4 Paul Varner (RETIRED) gentoo-dev 2009-05-07 21:17:47 UTC
$ svn commit -m "Add patch from djanderson to make meta get and check package dirs in a manner similar to other gentoolkit scripts and fix some docstrings. (Bug 268895)"
Sending        gentoolkit/ChangeLog
Sending        gentoolkit/pym/gentoolkit/equery/meta.py
Transmitting file data ..
Committed revision 619.
Comment 5 Paul Varner (RETIRED) gentoo-dev 2009-05-18 22:15:05 UTC
gentoolkit-0.3.0_rc6 released.