diff options
| author | genone <genone@gentoo.org> | 2004-01-09 01:19:46 +0000 |
|---|---|---|
| committer | genone <genone@gentoo.org> | 2004-01-09 01:19:46 +0000 |
| commit | a552c84a8e34efa9610defb0e5759296b339f446 (patch) | |
| tree | 69eb4a6dff366d7a5a4d25d063b56ab5501c56b4 | |
| parent | 541ad9d7e8f16fab86a72373268efe2139f32560 (diff) | |
| download | gentoolkit-a552c84a8e34efa9610defb0e5759296b339f446.tar.gz | |
'equery which' behavior fixed
svn path=/; revision=54
| -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") |
