[yum-commits] Branch 'yum-3_2_X' - yum/sqlitesack.py

Ville Skyttä scop at osuosl.org
Fri Oct 23 18:47:29 UTC 2009


 yum/sqlitesack.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f74bc5f84cdd9e2446bb0ed6cedba679b0e75ce2
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Oct 23 16:56:39 2009 +0300

    Fix SQLite names-only simplePkgList.
    
    Thanks to James Antill for pointing out a return type issue in the
    original patch.

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index 332f3bb..21b5c43 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -1616,6 +1616,9 @@ class YumSqlitePackageSack(yumRepo.YumPackageSack):
         # Haven't loaded everything, so _just_ get the pkgtups...
         data = self._setupPkgObjList(repoid, patterns, ignore_case)
         (need_full, patterns, fields, names) = data
+        if names:
+            return [pkg.pkgtup for pkg in self.searchNames(patterns)]
+
         for (repo, x) in self._yieldSQLDataList(repoid, patterns, fields,
                                                 ignore_case):
             # NOTE: Can't unexclude things...


More information about the Yum-commits mailing list