rpm5 & ts.hdrFromFdno from .hdr file

Elan Ruusamäe glen at pld-linux.org
Sat May 18 13:56:52 CEST 2013


On 05/18/2013 02:37 PM, Elan Ruusamäe wrote:
> On 05/18/2013 01:54 PM, Elan Ruusamäe wrote:
>> seems the .hdr files that yum/anaconda creates are not parseable by 
>> rpm5 on the same system:
>> ...
>> above tar is available from here to debug:
>> http://carme.pld-linux.org/~glen/rpm5-hdr.tar
>>
>
>
> header is extracted from this repodata info:
>
>     <rpm:header-range start="368" end="7947"/>
>
> perhaps those offsets are incorrect?

script to extract the offsets like yum does (ripped from yum):
http://carme.pld-linux.org/~glen/h-range.py

# python h-range.py blockdev-2.22.2-4.i686.rpm
START: 368, END: 7947, SIZE: 7579
Wrote: blockdev-2.22.2-4.i686.rpm.hdr

# md5sum -b *.hdr
ce84368ce713e81ad50214c9021f46d3 *blockdev-2.22.2-4.i686.hdr
ce84368ce713e81ad50214c9021f46d3 *blockdev-2.22.2-4.i686.rpm.hdr



-- 
glen



More information about the pld-devel-en mailing list