From 191af9ebb542214b294aca29aa17bc5cad3b7393 Mon Sep 17 00:00:00 2001 From: msw Date: Tue, 2 May 2000 18:56:17 +0000 Subject: don't call these header munges on null headers CVS patchset: 3718 CVS date: 2000/05/02 18:56:17 --- python/rpmmodule.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/python/rpmmodule.c b/python/rpmmodule.c index 290ddde03..8db0d140a 100644 --- a/python/rpmmodule.c +++ b/python/rpmmodule.c @@ -596,11 +596,11 @@ static PyObject * rpmReadHeaders (FD_t fd) { list = PyList_New(0); Py_BEGIN_ALLOW_THREADS header = headerRead(fd, HEADER_MAGIC_YES); - compressFilelist (header); - providePackageNVR (header); - + Py_END_ALLOW_THREADS while (header) { + compressFilelist (header); + providePackageNVR (header); h = (hdrObject *) PyObject_NEW(PyObject, &hdrType); h->h = header; h->fileList = h->linkList = h->md5list = NULL; @@ -616,8 +616,6 @@ static PyObject * rpmReadHeaders (FD_t fd) { Py_BEGIN_ALLOW_THREADS header = headerRead(fd, HEADER_MAGIC_YES); - compressFilelist (header); - providePackageNVR (header); Py_END_ALLOW_THREADS } -- cgit v1.2.3