[Rpm-maint] [Suse patch] Check rpm payload format

Michael Schroeder mls at suse.de
Tue May 22 10:18:04 UTC 2007


On Tue, May 22, 2007 at 11:10:15AM +0300, Panu Matilainen wrote:
> The other issue is that not all delta rpms appear 
> to be equal. createrepo is a suse-deltarpm and brltty is from yum-presto 
> fedora repo:
> 
> [root at dhcp115 ~]# rpm -Uv --nodeps --noscripts 
> /tmp/createrepo-0.4.4-9_9.3.noarch.delta.rpm
> Preparing packages for installation...
> createrepo-0.4.4-9.3
> error: unpacking of archive failed: cpio: Bad magic
> [root at dhcp115 ~]# rpm -Uv --nodeps --noscripts 
> /tmp/brltty-3.7.2_3.7.2-2.1.fc6_1.fc6.i386.drpm
> Preparing packages for installation...
> brltty-3.7.2-2.1.fc6
> error: unpacking of archive failed: cpio: Bad magic
> [root at dhcp115 ~]# rpm -qp --queryformat "%{PAYLOADFORMAT}\n" 
> /tmp/createrepo-0.4.4-9_9.3.noarch.delta.rpm
> drpm
> [root at dhcp115 ~]# rpm -qp --queryformat "%{PAYLOADFORMAT}\n" 
> /tmp/brltty-3.7.2_3.7.2-2.1.fc6_1.fc6.i386.drpm
> cpio
> ^^^^
> 
> Somebody more familiar with Delta RPMS care to comment, is this a matter 
> of different deltarpm versions being used or ...?

This is quite strange, yum-presto uses the standard deltarpm
package. Seems like a bug in the latest deltarpm release to me.
Fortunatelly, it is just a marker to prevent those "cpio error"
install messages. I'll create a patch.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}



More information about the Rpm-maint mailing list