From: Zac Medico Date: Sun, 15 Aug 2010 20:51:47 +0000 (-0700) Subject: Dispose of lock object after calling unlockfile(), in order to ensure X-Git-Tag: v2.2_rc68~193 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=045c2064c9c6a3bd64cda5ad38a56683fce78030;p=portage.git Dispose of lock object after calling unlockfile(), in order to ensure that we only try to unlock it once. --- diff --git a/pym/portage/package/ebuild/fetch.py b/pym/portage/package/ebuild/fetch.py index b95980539..0481ed2b0 100644 --- a/pym/portage/package/ebuild/fetch.py +++ b/pym/portage/package/ebuild/fetch.py @@ -1033,6 +1033,7 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks", finally: if use_locks and file_lock: unlockfile(file_lock) + file_lock = None if listonly: writemsg_stdout("\n", noiselevel=-1)