diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-10-05 15:25:59 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-10-05 15:25:59 +0300 |
commit | a9958395c7000c73fe9275046f50f6b276642d48 (patch) | |
tree | cbff2f343dfe801d06f25b617e3e8fe182132092 | |
parent | af00066294bb180b609d6f612237c14ad48f0dec (diff) | |
download | librpm-tizen-a9958395c7000c73fe9275046f50f6b276642d48.tar.gz librpm-tizen-a9958395c7000c73fe9275046f50f6b276642d48.tar.bz2 librpm-tizen-a9958395c7000c73fe9275046f50f6b276642d48.zip |
Permit threads during rpmReadPackageFile()
-rw-r--r-- | python/rpmts-py.c | 2 |
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) { |