Dispose of lock object after calling unlockfile(), in order to ensure
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 20:51:47 +0000 (13:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Aug 2010 20:51:47 +0000 (13:51 -0700)
that we only try to unlock it once.

pym/portage/package/ebuild/fetch.py

index b95980539a6b86f1b4e0a6f707b3996586b65223..0481ed2b093ffe2de2a735075fe3775a3750358b 100644 (file)
@@ -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)