summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
authorgenone <genone@gentoo.org>2004-01-09 01:19:46 +0000
committergenone <genone@gentoo.org>2004-01-09 01:19:46 +0000
commita552c84a8e34efa9610defb0e5759296b339f446 (patch)
tree69eb4a6dff366d7a5a4d25d063b56ab5501c56b4 /trunk/src
parent541ad9d7e8f16fab86a72373268efe2139f32560 (diff)
downloadgentoolkit-a552c84a8e34efa9610defb0e5759296b339f446.tar.gz
'equery which' behavior fixed
svn path=/; revision=54
Diffstat (limited to 'trunk/src')
-rwxr-xr-xtrunk/src/equery/equery6
1 files 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")