summaryrefslogtreecommitdiffstats
path: root/rpmmodule
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-07-21 06:17:18 +0000
committerMatt Wilson <msw@redhat.com>1999-07-21 06:17:18 +0000
commit236a5e87d45c11a8fe502129a774cabc445e6222 (patch)
tree710516e786e253adf3b27d5c72c0e8a282888130 /rpmmodule
parent4cc6ee7a17bc72328c618798b48d965b619f74a0 (diff)
downloadanaconda-236a5e87d45c11a8fe502129a774cabc445e6222.tar.gz
anaconda-236a5e87d45c11a8fe502129a774cabc445e6222.tar.xz
anaconda-236a5e87d45c11a8fe502129a774cabc445e6222.zip
release locks
Diffstat (limited to 'rpmmodule')
-rw-r--r--rpmmodule/rpmmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index f4e72aa95..c1b9d361c 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -306,8 +306,9 @@ static PyObject * rpmHeaderFromList(PyObject * self, PyObject * args) {
}
list = PyList_New(0);
-
+ Py_BEGIN_ALLOW_THREADS
header = headerRead(fd, HEADER_MAGIC_YES);
+ Py_END_ALLOW_THREADS
while (header) {
h = (hdrObject *) PyObject_NEW(PyObject, &hdrType);
h->h = header;
@@ -322,7 +323,9 @@ static PyObject * rpmHeaderFromList(PyObject * self, PyObject * args) {
Py_DECREF(h);
+ Py_BEGIN_ALLOW_THREADS
header = headerRead(fd, HEADER_MAGIC_YES);
+ Py_END_ALLOW_THREADS
}
fdClose(fd);