[yum-cvs] yum/yum __init__.py,1.77.2.2,1.77.2.3
Seth Vidal
skvidal at login.linux.duke.edu
Tue Mar 15 07:30:40 UTC 2005
Update of /home/groups/yum/cvs/yum/yum
In directory login:/tmp/cvs-serv14570/yum
Modified Files:
Tag: yum-2_2_X
__init__.py
Log Message:
make the lockfile dir if it not there -used for installroots
Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.77.2.2
retrieving revision 1.77.2.3
diff -u -r1.77.2.2 -r1.77.2.3
--- __init__.py 15 Mar 2005 06:56:32 -0000 1.77.2.2
+++ __init__.py 15 Mar 2005 07:30:38 -0000 1.77.2.3
@@ -346,7 +346,10 @@
self._unlock(lockfile)
def _lock(self, filename, contents='', mode=0777):
+ lockdir = os.path.dirname(filename)
try:
+ if not os.path.exists(lockdir):
+ os.makedirs(lockdir, mode=0755)
fd = os.open(filename, os.O_EXCL|os.O_CREAT|os.O_WRONLY, mode)
except OSError, msg:
if not msg.errno == errno.EEXIST: raise msg
More information about the Yum-cvs-commits
mailing list