[yum-cvs] yum/yum __init__.py,1.259.2.3,1.259.2.4

James Bowes jbowes at linux.duke.edu
Fri Nov 24 18:14:28 UTC 2006


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

Modified Files:
      Tag: yum-3_0_X
	__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.259.2.3
retrieving revision 1.259.2.4
diff -u -r1.259.2.3 -r1.259.2.4
--- __init__.py	17 Nov 2006 07:10:36 -0000	1.259.2.3
+++ __init__.py	24 Nov 2006 18:14:25 -0000	1.259.2.4
@@ -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