For bug #149028, don't lock the tbz2 file because the filesytem could be readonly...
authorZac Medico <zmedico@gentoo.org>
Mon, 25 Sep 2006 09:49:37 +0000 (09:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 25 Sep 2006 09:49:37 +0000 (09:49 -0000)
svn path=/main/trunk/; revision=4525

pym/portage.py

index e4d95747e6486c497c367c9b536e65d601dd991d..0ea10737d57533dce715cf0ce49177d7ebd35737 100644 (file)
@@ -6559,7 +6559,9 @@ def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None, vartree=None, prev_mtimes
        tbz2_lock = None
        builddir_lock = None
        try:
-               tbz2_lock = portage_locks.lockfile(mytbz2, wantnewlockfile=1)
+               """ Don't lock the tbz2 file because the filesytem could be readonly or
+               shared by a cluster."""
+               #tbz2_lock = portage_locks.lockfile(mytbz2, wantnewlockfile=1)
 
                mypkg = os.path.basename(mytbz2)[:-5]
                xptbz2 = xpak.tbz2(mytbz2)
@@ -6611,8 +6613,8 @@ def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None, vartree=None, prev_mtimes
                if retval != os.EX_OK:
                        writemsg("!!! Error Extracting '%s'\n" % mytbz2, noiselevel=-1)
                        return None
-               portage_locks.unlockfile(tbz2_lock)
-               tbz2_lock = None
+               #portage_locks.unlockfile(tbz2_lock)
+               #tbz2_lock = None
 
                mylink = dblink(mycat, mypkg, myroot, mysettings, vartree=vartree,
                        treetype="bintree")