[yum-cvs] yum/yum yumRepo.py,1.21,1.22

Jeremy Katz katzj at linux.duke.edu
Mon Sep 11 21:46:23 UTC 2006


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

Modified Files:
	yumRepo.py 
Log Message:
we need to redo setupGrab() after changing callbacks so that our grabber
has the right info.  this makes it so that we get progress feedback
when downloading in pirut again


Index: yumRepo.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/yumRepo.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- yumRepo.py	3 Sep 2006 21:56:19 -0000	1.21
+++ yumRepo.py	11 Sep 2006 21:46:21 -0000	1.22
@@ -680,15 +680,19 @@
 
     def setCallback(self, callback):
         self.callback = callback
+        self.setupGrab()
 
     def setFailureObj(self, failure_obj):
         self.failure_obj = failure_obj
+        self.setupGrab()
 
     def setMirrorFailureObj(self, failure_obj):
         self.mirror_failure_obj = failure_obj
+        self.setupGrab()
 
     def setInterruptCallback(self, callback):
         self.interrupt_callback = callback
+        self.setupGrab()
 
 def getMirrorList(mirrorlist, pdict = None):
     """retrieve an up2date-style mirrorlist file from a url,




More information about the Yum-cvs-commits mailing list