summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-05 15:25:59 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-05 15:25:59 +0300
commita9958395c7000c73fe9275046f50f6b276642d48 (patch)
treecbff2f343dfe801d06f25b617e3e8fe182132092
parentaf00066294bb180b609d6f612237c14ad48f0dec (diff)
downloadlibrpm-tizen-a9958395c7000c73fe9275046f50f6b276642d48.tar.gz
librpm-tizen-a9958395c7000c73fe9275046f50f6b276642d48.tar.bz2
librpm-tizen-a9958395c7000c73fe9275046f50f6b276642d48.zip
Permit threads during rpmReadPackageFile()
-rw-r--r--python/rpmts-py.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index 05c830322..f29df789c 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -343,7 +343,9 @@ rpmts_HdrFromFdno(rpmtsObject * s, PyObject *arg)
if (!PyArg_Parse(arg, "O&:HdrFromFdno", rpmFdFromPyObject, &fd))
return NULL;
+ Py_BEGIN_ALLOW_THREADS;
rpmrc = rpmReadPackageFile(s->ts, fd, "rpmts_HdrFromFdno", &h);
+ Py_END_ALLOW_THREADS;
Fclose(fd);
if (rpmrc == RPMRC_OK) {