diff options
author | msw <devnull@localhost> | 2000-05-02 18:56:17 +0000 |
---|---|---|
committer | msw <devnull@localhost> | 2000-05-02 18:56:17 +0000 |
commit | 191af9ebb542214b294aca29aa17bc5cad3b7393 (patch) | |
tree | 8b23b297f6cc0b19f60f6269e967d90a007b83dc | |
parent | a2891ff2c64d639f8f70798abcc365df7ad724c4 (diff) | |
download | rpm-191af9ebb542214b294aca29aa17bc5cad3b7393.tar.gz rpm-191af9ebb542214b294aca29aa17bc5cad3b7393.tar.bz2 rpm-191af9ebb542214b294aca29aa17bc5cad3b7393.zip |
don't call these header munges on null headers
CVS patchset: 3718
CVS date: 2000/05/02 18:56:17
-rw-r--r-- | python/rpmmodule.c | 8 |
1 files 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 } |