[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py
skvidal at osuosl.org
skvidal at osuosl.org
Mon Feb 8 15:44:35 UTC 2010
yum/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit ff46ada29669c8ddd8b9df7c3ade3a56cfffa252
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Mon Feb 8 10:44:25 2010 -0500
add a little bit more documentation for the sorted_lists format in searchGenerator
so I don't have to relearn it everytime I look at it
diff --git a/yum/__init__.py b/yum/__init__.py
index 8b69788..cb06d1b 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2070,7 +2070,9 @@ class YumBase(depsolve.Depsolve):
sql_fields.append(f)
# yield the results in order of most terms matched first
- sorted_lists = {}
+ sorted_lists = {} # count_of_matches = [(pkgobj,
+ # [search strings which matched],
+ # [results that matched])]
tmpres = []
real_crit = []
real_crit_lower = [] # Take the s.lower()'s out of the loop
More information about the Yum-commits
mailing list