import rpm
for hdr in rpm.TransactionSet().dbMatch("name", "gpg-pubkey"):
print hdr.dsFromHeader()
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
SystemError: NULL result without error in PyObject_Call
Slightly different message with rpm-python-4.4.2.3-18.el5 on CentOS 5:
Traceback (most recent call last):
File "<stdin>", line 2, in ?
SystemError: error return without exception set
rpm-python bug?
This affects rpmlint (DocFilesCheck.py). I wonder if I could just use hdr.dsOfHeader() instead of hdr.dsFromHeader() there, it doesn't seem to have the same problem (not to mention that even that doesn't have to be done for packages that don't have doc files...)
rpm-python- 4.8.0-14. fc13.x86_ 64 on current F-13:
import rpm Set().dbMatch( "name", "gpg-pubkey"):
for hdr in rpm.Transaction
print hdr.dsFromHeader()
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
SystemError: NULL result without error in PyObject_Call
Slightly different message with rpm-python- 4.4.2.3- 18.el5 on CentOS 5:
Traceback (most recent call last):
File "<stdin>", line 2, in ?
SystemError: error return without exception set
rpm-python bug?
This affects rpmlint (DocFilesCheck.py). I wonder if I could just use hdr.dsOfHeader() instead of hdr.dsFromHeader() there, it doesn't seem to have the same problem (not to mention that even that doesn't have to be done for packages that don't have doc files...)