From: genone Date: Fri, 9 Jan 2004 01:19:46 +0000 (-0000) Subject: 'equery which' behavior fixed X-Git-Tag: gentoolkit-0.2.4.3~448 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a552c84a8e34efa9610defb0e5759296b339f446;p=gentoolkit.git 'equery which' behavior fixed svn path=/; revision=54 --- diff --git a/trunk/src/equery/equery b/trunk/src/equery/equery index 468bc58..1d3d041 100755 --- a/trunk/src/equery/equery +++ b/trunk/src/equery/equery @@ -672,9 +672,9 @@ class CmdWhich(Command): (query, opts) = self.parseArgs(args) matches = gentoolkit.find_packages(query) - - for pkg in matches: - print os.path.normpath(pkg.get_ebuild_path()) + matches = gentoolkit.sort_package_list(matches) + + print os.path.normpath(matches[-1].get_ebuild_path()) def shortHelp(self): return turquoise("pkgspec") + " - print full path to ebuild for package " + turquoise("pkgspec")