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

James Antill james at osuosl.org
Tue Dec 23 07:08:20 UTC 2008


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

New commits:
commit ed70bdee86e8dbd6ee920e67f1c99a9f422921e2
Author: James Antill <james at and.org>
Date:   Tue Dec 23 02:08:11 2008 -0500

    Don't let location_base (and probably others) convert from None to ''

diff --git a/yum/sqlitesack.py b/yum/sqlitesack.py
index d98e43b..c2f4fbd 100644
--- a/yum/sqlitesack.py
+++ b/yum/sqlitesack.py
@@ -154,7 +154,8 @@ class YumAvailablePackageSqlite(YumAvailablePackage, PackageObject, RpmBase):
         value = r[0]
         if varname == 'epoch' and value is None:
             value = '0'
-        if value is None:
+        if varname in ('summary', 'description') and value is None:
+            # Maybe others here? ... location_base is a bad NONO though.
             value = '' # Description for picasa, probably among others *sigh*
         if varname in {'vendor' : 1, 'packager' : 1, 'buildhost' : 1,
                        'license' : 1, 'group' : 1,


More information about the Yum-commits mailing list