Fix a lock file leak.
authorZac Medico <zmedico@gentoo.org>
Tue, 14 Nov 2006 14:07:25 +0000 (14:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 14 Nov 2006 14:07:25 +0000 (14:07 -0000)
svn path=/main/trunk/; revision=5046

pym/portage.py

index 0188cdc4fa7dcec81a625cee1d175b9f0ab00405..965d5030dbb34a5fc9a894ff40e1232710122157 100644 (file)
@@ -5151,7 +5151,7 @@ class portdbapi(dbapi):
 
                        mylock = None
                        try:
-                               portage_locks.lockfile(mydbkey, wantnewlockfile=1)
+                               mylock = portage_locks.lockfile(mydbkey, wantnewlockfile=1)
                                try:
                                        os.unlink(mydbkey)
                                except (IOError, OSError), e: