[yum-cvs] yum-utils repo-rss.py,1.1,1.2

Gijs Hollestelle gijs at login.linux.duke.edu
Tue Mar 22 14:10:55 UTC 2005


Update of /home/groups/yum/cvs/yum-utils
In directory login:/tmp/cvs-serv3992

Modified Files:
	repo-rss.py 
Log Message:
Make repo-rss work with sqlite by calling returnChangeLog if no changelog
info is loaded for a specific package.



Index: repo-rss.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/repo-rss.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- repo-rss.py	21 Mar 2005 08:42:29 -0000	1.1
+++ repo-rss.py	22 Mar 2005 14:10:53 -0000	1.2
@@ -132,7 +132,11 @@
         # build up changelog
         changelog = ''
         cnt = 0
-        for e in pkg.changelog:
+        if (pkg.changelog != None):
+            where = pkg.changelog
+        else:
+            where = pkg.returnChangelog()
+        for e in where:
             cnt += 1
             if cnt > 3: 
                 changelog += '...'




More information about the Yum-cvs-commits mailing list