aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyray <fuzzyray@gentoo.org>2008-09-03 20:00:18 +0000
committerfuzzyray <fuzzyray@gentoo.org>2008-09-03 20:00:18 +0000
commit584028e87305e1d4ea272109fddcb2a592dfa27a (patch)
tree6456a322082b77ddf742ee83503ceb69fea4d200
parentFix has_key() deprecation message. (Bug #232797) (diff)
downloadgentoolkit-584028e87305e1d4ea272109fddcb2a592dfa27a.tar.gz
gentoolkit-584028e87305e1d4ea272109fddcb2a592dfa27a.tar.bz2
gentoolkit-584028e87305e1d4ea272109fddcb2a592dfa27a.zip
Change find_best_match to use the portage tree instaed of the vartree
svn path=/; revision=511
-rw-r--r--trunk/src/gentoolkit/helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/gentoolkit/helpers.py b/trunk/src/gentoolkit/helpers.py
index bf2b1b1..1823f2c 100644
--- a/trunk/src/gentoolkit/helpers.py
+++ b/trunk/src/gentoolkit/helpers.py
@@ -64,9 +64,9 @@ def find_installed_packages(search_key, masked=False):
return [Package(x) for x in t]
def find_best_match(search_key):
- """Returns a Package object for the best available installed candidate that
+ """Returns a Package object for the best available candidate that
matched the search key."""
- t = portage.db["/"]["vartree"].dep_bestmatch(search_key)
+ t = portage.db["/"]["porttree"].dep_bestmatch(search_key)
if t:
return Package(t)
return None