[yum-cvs] yum yum-updatesd.py,1.24,1.25
Jeremy Katz
katzj at linux.duke.edu
Mon Nov 6 21:16:31 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv13601
Modified Files:
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.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- yum-updatesd.py 17 Oct 2006 03:59:26 -0000 1.24
+++ yum-updatesd.py 6 Nov 2006 21:16:29 -0000 1.25
@@ -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