Re: MD5 digest problem
seth vidal <skvidal-c/MNwgJ9CEH2fBVCVOL8/[email protected]> Mon, 06 Jun 2005 09:10:54 -0400
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Message-ID | <1118063454.19379.78.camel@cutter> |
On Mon, 2005-06-06 at 21:00 +0800, Tsai Li Ming wrote: > Hi seth, > > Is there a way to suppress such an error message from the rpm module: > error: rpmts_HdrFromFdno: MD5 digest: BAD > Expected(40b52df6c81090297c0f10ebfb8d7668) != > (1213e5cd891b963fcc9e907bed89212b) > error reading package header > > try: > fd = os.open(self.filename, os.O_RDONLY) > ts = rpm.ts() > ts.setVSFlags(rpm.RPMVSF_NORSA | rpm.RPMVSF_NODSA) > self.hdr = ts.hdrFromFdno(fd) > except Exception,e: > print e > dup stdout and stderr and grab the output? -sv