From 67e32e138a740df0fa02eb9faa6c8cd789db8201 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 14 Nov 2006 14:07:25 +0000 Subject: [PATCH] Fix a lock file leak. svn path=/main/trunk/; revision=5046 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage.py b/pym/portage.py index 0188cdc4f..965d5030d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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: -- 2.26.2