[yum-cvs] yum-utils/plugins/changelog changelog.py,1.5,1.6

Panu Matilainen pmatilai at login.linux.duke.edu
Tue Aug 23 16:10:34 UTC 2005


Update of /home/groups/yum/cvs/yum-utils/plugins/changelog
In directory login:/tmp/cvs-serv21784/plugins/changelog

Modified Files:
	changelog.py 
Log Message:
Only load otherdata when --changelog is actually used


Index: changelog.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/changelog/changelog.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- changelog.py	25 Jul 2005 16:31:00 -0000	1.5
+++ changelog.py	23 Aug 2005 16:10:32 -0000	1.6
@@ -75,8 +75,9 @@
     opts, args = conduit.getCmdLine()
     changelog = opts.changelog
 
-    repos = conduit.getRepos()
-    repos.populateSack(with='otherdata')
+    if changelog:
+        repos = conduit.getRepos()
+        repos.populateSack(with='otherdata')
 
 def postresolve_hook(conduit):
     if not changelog: 




More information about the Yum-cvs-commits mailing list