[yum-cvs] yum-updatesd
James Antill
james at linux.duke.edu
Fri Dec 21 16:42:37 UTC 2007
yum-updatesd | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 6574d1fd2d8823717bd4a820880118a2b7899189
Author: James Antill <james at and.org>
Date: Fri Dec 21 11:19:38 2007 -0500
Actually obey the limited param. *sigh*
diff --git a/yum-updatesd b/yum-updatesd
index 717524b..69da1c1 100755
--- a/yum-updatesd
+++ b/yum-updatesd
@@ -152,7 +152,8 @@ def checkUpdates(opts, wait = False, limited=False):
print >> sys.stderr, "Helper process already running"
return True
- if lastUpdate and (time.time() - lastUpdate) < opts.updaterefresh:
+ now = time.time()
+ if limited and lastUpdate and (now - lastUpdate) < opts.updaterefresh:
print >> sys.stderr, "Update requested too quickly"
return True
@@ -196,7 +197,7 @@ def checkUpdates(opts, wait = False, limited=False):
args.append("--debug")
print >> sys.stderr, "Going to exec: %s" %(args,)
- lastUpdate = time.time()
+ lastUpdate = now
helperProcess = subprocess.Popen(args, close_fds = True)
if not wait:
More information about the Yum-cvs-commits
mailing list