From a552c84a8e34efa9610defb0e5759296b339f446 Mon Sep 17 00:00:00 2001 From: genone Date: Fri, 9 Jan 2004 01:19:46 +0000 Subject: [PATCH] 'equery which' behavior fixed svn path=/; revision=54 --- trunk/src/equery/equery | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") -- 2.26.2