Blame SOURCES/BZ-1256216-cifs-share-oserror.patch

fb5bfe
--- a/createrepo/__init__.py    2015-08-24 14:58:31.510985403 +0900
fb5bfe
+++ b/createrepo/__init__.py    2015-08-24 14:58:52.842172340 +0900
fb5bfe
@@ -230,6 +230,7 @@ class MetaDataGenerator:
fb5bfe
                 except (OSError, IOError), e:
fb5bfe
                     raise MDError, _("Could not create exclusive lock in %s and sqlite database generation enabled. Is this path on nfs? Is your lockd running?") % direc
fb5bfe
                 else:
fb5bfe
+                    f.close()
fb5bfe
                     os.unlink(direc + '/locktest')
fb5bfe
                 
fb5bfe
         if self.conf.deltas: