Red Hat Bugzilla – Bug 492918
missing filename in rpmts_HdrFromFdno: MD5 digest: BAD Expected
Last modified: 2014-01-21 18:08:47 EST
Description of problem: When running repomanage, the filename is missing from the error message "error: rpmts_HdrFromFdno: MD5 digest: BAD Expected(...". There is no way to tell which *.rpm is bad.
Version-Release number of selected component (if applicable):
How reproducible: always
Steps to Reproduce:
1. "repomanage -o ." in a directory containing one bad .rpm and many good .rpm files
Actual results: The filename is missing from the error message which alerts the user to the bad digest. The user receives no clue about which is the bad .rpm.
Expected results: Any error message that pertains to a file must include the filename.
test this repomanage and tell me if it prints out correctly.
The output looks good (contains the filename):
error: rpmts_HdrFromFdno: MD5 digest: BAD Expected(770fa61062f27255aae54c7cacb601ab) != (0fea6700ec3ed283c7dc1c1ebade43ce)
/home/jreiser/Download/repomanage.py:153: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
msg = "Error opening pkg %s: %s" % (pkg, e.message)
Error opening pkg openoffice.org-langpack-or_IN-3.1.0-4.1.fc11.i586.rpm: RPM Error opening Package
and indeed that file was bad.