diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-23 14:00:26 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-23 14:00:26 -0700 |
commit | 9e17de9a9cbd412760b761b4362175939fd4b13d (patch) | |
tree | 776cde48dd6a40685d692008c40c8ced495f2920 | |
parent | 0d375f1105ad67c8b7e3b16b57cdbb367f99cd69 (diff) | |
download | portage-9e17de9a9cbd412760b761b4362175939fd4b13d.tar.gz portage-9e17de9a9cbd412760b761b4362175939fd4b13d.tar.bz2 portage-9e17de9a9cbd412760b761b4362175939fd4b13d.zip |
portageq best_visible: use match-all-cpv-only
-rwxr-xr-x | bin/portageq | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/portageq b/bin/portageq index 3ae29d13f..b416b66c5 100755 --- a/bin/portageq +++ b/bin/portageq @@ -464,7 +464,7 @@ def best_visible(argv): portage.db[portage.settings["ROOT"]], None) if hasattr(db, "xmatch"): - cpv_list = db.xmatch("match-all", atom) + cpv_list = db.xmatch("match-all-cpv-only", atom) else: cpv_list = db.match(atom) @@ -472,7 +472,9 @@ def best_visible(argv): # reversed, for descending order cpv_list.reverse() # verify match, since the atom may match the package - # for a given cpv from one repo but not another + # for a given cpv from one repo but not another, and + # we can use match-all-cpv-only to avoid redundant + # metadata access. atom_set = InternalPackageSet(initial_atoms=(atom,)) if atom.repo is None and hasattr(db, "getRepositories"): |