projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b619ac
)
Change find_best_match to use the portage tree instaed of the vartree
author
fuzzyray
<fuzzyray@gentoo.org>
Wed, 3 Sep 2008 20:00:18 +0000
(20:00 -0000)
committer
fuzzyray
<fuzzyray@gentoo.org>
Wed, 3 Sep 2008 20:00:18 +0000
(20:00 -0000)
svn path=/; revision=511
trunk/src/gentoolkit/helpers.py
patch
|
blob
|
history
diff --git
a/trunk/src/gentoolkit/helpers.py
b/trunk/src/gentoolkit/helpers.py
index bf2b1b1f1498b9e2f5aab9e52ed3393f9ffbbed3..1823f2cf1421156b17ed41b988819f533eacd966 100644
(file)
--- 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["/"]["
var
tree"].dep_bestmatch(search_key)
+ t = portage.db["/"]["
port
tree"].dep_bestmatch(search_key)
if t:
return Package(t)
return None