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

Panu Matilainen pmatilai at redhat.com
Tue May 22 10:57:23 UTC 2007


On Tue, 22 May 2007, Michael Schroeder wrote:

> 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.

Ok, so it's just a bug, good :)

And since it's supposed to be consistent, I don't see any problem putting 
in a specific check for drpm payload (and telling the user it can't be 
directly installed), similarly to what Suse's patch does.

 	- Panu -



More information about the Rpm-maint mailing list