[yum-cvs] yum yum-updatesd.py,1.22.2.2,1.22.2.3

Jeremy Katz katzj at linux.duke.edu
Mon Nov 6 21:18:06 UTC 2006


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

Modified Files:
      Tag: yum-3_0_X
	yum-updatesd.py 
Log Message:
fix excludes (rh#213622, rh#212494) and auto-update (rh#212507)


Index: yum-updatesd.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum-updatesd.py,v
retrieving revision 1.22.2.2
retrieving revision 1.22.2.3
diff -u -r1.22.2.2 -r1.22.2.3
--- yum-updatesd.py	17 Oct 2006 03:54:19 -0000	1.22.2.2
+++ yum-updatesd.py	6 Nov 2006 21:18:04 -0000	1.22.2.3
@@ -23,6 +23,11 @@
 # - what to do if we're asked to exit while updates are being applied?
 # - what to do with the lock around downloads/updates
 
+# since it takes me time everytime to figure this out again, here's how to
+# queue a check with dbus-send.  adjust appropriately for other methods
+# $ dbus-send --system --print-reply --type=method_call \
+#   --dest=edu.duke.linux.yum /Updatesd edu.duke.linux.yum.CheckNow
+
 import os
 import sys
 import time
@@ -267,9 +272,9 @@
         self.updd.updateInfoTime = None        
         
     def run(self):
-        self.updd.downloadPkgs(dlpkgs)
-        for po in dlpkgs:
-            rc, err = self.updd.sigCheckPkg(po)
+        self.updd.downloadPkgs(self.dlpkgs)
+        for po in self.dlpkgs:
+            result, err = self.updd.sigCheckPkg(po)
             if result == 0:
                 continue
             elif result == 1:
@@ -578,7 +583,7 @@
     if not options.nofork:
         if os.fork():
             sys.exit()
-        fd = os.open("/dev/null", os.O_RDONLY)
+        fd = os.open("/dev/null", os.O_RDWR)
         os.dup2(fd, 0)
         os.dup2(fd, 1)
         os.dup2(fd, 2)




More information about the Yum-cvs-commits mailing list