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

Re: Registering a media type for Debian binary packages ?



On Fri, 2014-01-03 at 12:35:05 +0000, Ian Jackson wrote:
> Guillem Jover writes ("Re: Registering a media type for Debian binary packages ?"):
> > On Fri, 2014-01-03 at 10:42:09 +0900, Charles Plessy wrote:
> > > Magic number(s):
> > > Files usually start with the following string:
> > > !<arch>
> > 
> > This is not enough, this just marks any ar archive, the distinguishing
> > magic for a .deb is the debian-binary ar member.
> 
> Conveniently, the exact format of this is constant and appears at the
> start of the file.  A .deb file[1] starts with "!<arch>\ndebian-binary".

Exactly, and sorry Charles for being unnecessarily opaque/cryptic, I
should not have expected this to be obvious.

Thanks,
Guillem


Reply to: