[yum-cvs] yum/yum __init__.py,1.262,1.263
James Bowes
jbowes at linux.duke.edu
Thu Nov 23 02:28:57 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv13371/yum
Modified Files:
__init__.py
Log Message:
Provide a default file name for doLock and doUnlock
Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.262
retrieving revision 1.263
diff -u -r1.262 -r1.263
--- __init__.py 23 Nov 2006 02:24:50 -0000 1.262
+++ __init__.py 23 Nov 2006 02:28:55 -0000 1.263
@@ -523,7 +523,7 @@
self.verbose_logger.log(logginglevels.INFO_2, 'Finished')
- def doLock(self, lockfile):
+ def doLock(self, lockfile = YUM_PID_FILE):
"""perform the yum locking, raise yum-based exceptions, not OSErrors"""
# if we're not root then we don't lock - just return nicely
@@ -558,7 +558,7 @@
msg = 'Existing lock %s: another copy is running. Aborting.' % lockfile
raise Errors.LockError(0, msg)
- def doUnlock(self, lockfile):
+ def doUnlock(self, lockfile = YUM_PID_FILE):
"""do the unlock for yum"""
# if we're not root then we don't lock - just return nicely
More information about the Yum-cvs-commits
mailing list