[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: magic numbers for deltarpms and deltaisos



On Thu, Nov 05, 2009 at 09:00:52AM +0200, Jonathan Dieter wrote:
> On Thu, 2009-11-05 at 01:24 -0500, Andre Robatino wrote:
> > The file command appears to detect deltarpms as the same type of file as
> > regular RPMs.  Deltaisos are only detected as "data".  Is this normal
> > behavior?
> 
> A deltarpm's header is identical to a rpm's header (except that the
> payload format is "drpm"), so it will always be seen as an rpm by file.

That's true for "header" deltarpms, but "rpm-only" delta rpms
start with "drpm".

> I'm not sure about deltaiso.

They start with "DISO" and then 4 bytes deltaiso version in network
byte order.

Cheers,
  Michael.

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]