[yum-cvs] yum/yum depsolve.py,1.149,1.150

Jeremy Katz katzj at linux.duke.edu
Sun Apr 1 00:37:06 UTC 2007


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv1026/yum

Modified Files:
	depsolve.py 
Log Message:
>From Chris Lumens (clumens AT redhat DOT com)

Looking at why the anaconda dependency progress bar never moves, I found
two small things.  First, we're never calling pkgAdded in _resolveDeps
so the progress bar is never getting updated.  Second, we're never
initializing the progress bar with the number of things to check so we
don't know how big to make the increments.


Index: depsolve.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/depsolve.py,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -r1.149 -r1.150
--- depsolve.py	1 Apr 2007 00:35:39 -0000	1.149
+++ depsolve.py	1 Apr 2007 00:37:04 -0000	1.150
@@ -883,6 +883,10 @@
             
             if self.dcobj.already_seen.has_key(txmbr):
                 continue
+
+            if self.dsCallback: 
+                self.dsCallback.pkgAdded(txmbr.pkgtup, txmbr.ts_state)
+
             self.verbose_logger.log(logginglevels.INFO_2,
                                     "Checking deps for %s" %(txmbr,))
             if txmbr.output_state in (TS_INSTALL, TS_TRUEINSTALL, TS_OBSOLETING):
@@ -908,7 +912,7 @@
         while CheckDeps:
             self.cheaterlookup = {} # short cache for some information we'd resolve
                                     # (needname, needversion) = pkgtup
-            if self.dsCallback: self.dsCallback.tscheck()
+            if self.dsCallback: self.dsCallback.tscheck(len(self.tsInfo.getMembers()))
             deps = self._mytsCheck()
 
             if not deps:




More information about the Yum-cvs-commits mailing list