[yum-cvs] yum-utils/plugins/changelog changelog.py,1.8,1.9

Panu Matilainen pmatilai at linux.duke.edu
Tue Sep 5 18:53:31 UTC 2006


Update of /home/groups/yum/cvs/yum-utils/plugins/changelog
In directory login1.linux.duke.edu:/tmp/cvs-serv32115/plugins/changelog

Modified Files:
	changelog.py 
Log Message:
- add allowdowngrade plugin
- fix traceback in changelog plugin if package has no changelog


Index: changelog.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/changelog/changelog.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- changelog.py	16 Jun 2006 14:45:51 -0000	1.8
+++ changelog.py	5 Sep 2006 18:53:29 -0000	1.9
@@ -90,7 +90,11 @@
                 # store the latest date in changelog entries
                 times = hdr['changelogtime']
                 n,v,r,e,a = splitFilename(hdr['sourcerpm'])
-                origpkgs[n] = times[0]
+                if len(times) == 0:
+                    # deal with packages without changelog
+                    origpkgs[n] = 0 
+                else:
+                    origpkgs[n] = times[0]
 
     if conduit.confString('main', 'when', default='post') == 'pre':
         show_changes(conduit, 'Changes in packages about to be updated:')




More information about the Yum-cvs-commits mailing list