Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64277 - etcat -v mldonkey : crashes because of ambiguous package name
Summary: etcat -v mldonkey : crashes because of ambiguous package name
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-16 07:23 UTC by Stephane Loeuillet
Modified: 2004-09-29 15:28 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 Stephane Loeuillet 2004-09-16 07:23:44 UTC
"etcat -v mldonkey" crashed because there are 2 packages by that name (in net-p2p and app-emacs)

etcat -v mldonkey
[ Results for search key           : mldonkey ]
[ Candidate applications found : 9 ]

 Only printing found installed programs.

Traceback (most recent call last):
  File "/usr/bin/etcat", line 670, in ?
    main()
  File "/usr/bin/etcat", line 666, in main
    function(query, matches)
  File "/usr/bin/etcat", line 251, in versions
    matches = gentoolkit.sort_package_list(matches)
  File "/usr/lib/gentoolkit/pym/gentoolkit.py", line 294, in sort_package_list
    pkglist.sort(Package.compare_version)
TypeError: comparison function must return int


"emerge mldonkey" would warn in such a case :

emerge mldonkey
Calculating dependencies

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

    app-emacs/mldonkey
    net-p2p/mldonkey


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8.1 i686)
=================================================================
System uname: 2.6.8.1 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.sevenl.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.sevenl.net/gentoo-portage"
USE="apache2 apm arts avi berkdb bitmap-fonts crypt cups encode erandom expat
foomaticdb gd gdbm geoip gif gpm gtk2 imlib jpeg ldap libg++ libwww mad maildir
mikmod milter motif mpeg mysql ncurses nls nptl oggvorbis opengl pam pcre pdflib
perl pic png proftpd pwdb python quicktime readline sasl sdl sendmail slang
spell ssl svga tcpd threads truetype unicode x86 xml xml2 xmms xprint xv zlib"
Comment 1 Stephane Loeuillet 2004-09-29 15:28:01 UTC
it was not working with -rc1, but it works now with -rc6 :

etcat -v mldonkey
[ Results for search key           : mldonkey ]
[ Candidate applications found : 9 ]

 Only printing found installed programs.

*  app-emacs/mldonkey :
        [ ~ ] 0.0.2a (0) OVERLAY
        [ ~ ] 0.0.3c (0) OVERLAY
        [ ~ ] 0.0.4a (0) OVERLAY
*  net-p2p/mldonkey :
        [   ] 2.5.16-r7 (0) OVERLAY
        [ ~ ] 2.5.16-r8 (0) OVERLAY
        [M~ ] 2.5.21-r2 (0) OVERLAY
        [M~ ] 2.5.27-r1 (0) OVERLAY
        [M~ ] 2.5.28 (0) OVERLAY
        [M~ ] 2.5.28-r1 (0) OVERLAY

thanks guys