Change find_best_match to use the portage tree instaed of the vartree
authorfuzzyray <fuzzyray@gentoo.org>
Wed, 3 Sep 2008 20:00:18 +0000 (20:00 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Wed, 3 Sep 2008 20:00:18 +0000 (20:00 -0000)
svn path=/; revision=511

trunk/src/gentoolkit/helpers.py

index bf2b1b1f1498b9e2f5aab9e52ed3393f9ffbbed3..1823f2cf1421156b17ed41b988819f533eacd966 100644 (file)
@@ -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