summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authormsw <devnull@localhost>2000-05-02 18:56:17 +0000
committermsw <devnull@localhost>2000-05-02 18:56:17 +0000
commit191af9ebb542214b294aca29aa17bc5cad3b7393 (patch)
tree8b23b297f6cc0b19f60f6269e967d90a007b83dc /python
parenta2891ff2c64d639f8f70798abcc365df7ad724c4 (diff)
downloadrpm-191af9ebb542214b294aca29aa17bc5cad3b7393.tar.gz
don't call these header munges on null headers
CVS patchset: 3718 CVS date: 2000/05/02 18:56:17
Diffstat (limited to 'python')
-rw-r--r--python/rpmmodule.c8
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
}