From: fuzzyray Date: Wed, 3 Sep 2008 20:00:18 +0000 (-0000) Subject: Change find_best_match to use the portage tree instaed of the vartree X-Git-Tag: gentoolkit-0.2.4.3^2~43 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=584028e87305e1d4ea272109fddcb2a592dfa27a;p=gentoolkit.git Change find_best_match to use the portage tree instaed of the vartree svn path=/; revision=511 --- 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