CachedRepo: close the lock file when unlocking
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 4 Mar 2014 12:54:53 +0000 (14:54 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 4 Mar 2014 13:46:38 +0000 (15:46 +0200)
Change-Id: I8bf56bff0ca63ed4b6c0fef8b28ab36a7d4f7668
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp_repocache/__init__.py

index fd7aa54..87b7693 100644 (file)
@@ -128,6 +128,7 @@ class CachedRepo(object):
         """Release the repository lock"""
         if self.lock:
             fcntl.flock(self.lock, fcntl.LOCK_UN)
+            self.lock.close()
             self.lock = None
 
     @staticmethod