From 584028e87305e1d4ea272109fddcb2a592dfa27a Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 3 Sep 2008 20:00:18 +0000 Subject: Change find_best_match to use the portage tree instaed of the vartree svn path=/; revision=511 --- trunk/src/gentoolkit/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trunk') 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 -- cgit v1.2.3