summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {