[Yum-devel] yum 3.2.24-5 now aborts on some extra RPM errors?

James Antill james at fedoraproject.org
Tue Sep 22 15:48:52 UTC 2009


On Tue, 2009-09-22 at 16:25 +0100, Richard W.M. Jones wrote:
> Previously (yum 3.2.24-4) yum ignored the case where some package
> fails to unpack, as in here:
> 
>   Installing     : filesystem-2.4.30-2.fc12.x86_64                        3/132 
> Error unpacking rpm package filesystem-2.4.30-2.fc12.x86_64
> error: unpacking of archive failed on file /proc: cpio: utime
> 
> [but yum continues anyway]
> 
> However with the latest yum 3.2.24-5 it fails with this obscure stack
> trace, which we assume is related to the above error:
> 
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/yum/rpmtrans.py", line 377, in callback
>     self._instCloseFile(  bytes, total, h )
>   File "/usr/lib/python2.6/site-packages/yum/rpmtrans.py", line 452, in _instCloseFile
>     state = self.base.history.txmbr2state(txmbr)
>   File "/usr/lib/python2.6/site-packages/yum/history.py", line 280, in txmbr2state
>     state = _stcode2sttxt[txmbr.output_state]
> KeyError: 100
> error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x3ae68c0>> failed, aborting!
> 
> We'd like it to continue running in this case (or at least, for that
> to be made configurable) because the particular error here is
> inconsequential for us.

 Wow ... can you test the attached patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ignore-ts-failed.patch
Type: text/x-patch
Size: 1913 bytes
Desc: not available
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20090922/41bcd87c/attachment-0001.bin>


More information about the Yum-devel mailing list