diff options
Diffstat (limited to 'trunk/src')
| -rwxr-xr-x | trunk/src/equery/equery | 6 |
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") |
