[ANN] Rpmfile 1.0.0 & Bytream 0.2

Yo!

I am happy to announce the first major release of the Rpmfile library (for parsing RPM files) and a minor update of the Bytream library (streaming bytes and crunching them last library).

let () = 
  let metadata = 
    In_channel.with_open_bin 
      "hello.rpm" 
      Rpmfile.Reader.from_channel_without_payload 
  in

  let name, release = Rpmfile.View.(name metadata, release metadata) in 
  Printf.printf "%s.%s\n" name release
  (* hello.1.3 *)

Changes

  • Rpmfile reader has been moved from Angstrom library to Bytream library. The biggest change in this version is the start of using the Bytream library to read RPM files from input/output streams
  • Added CPIO archive reader (does not automatically decompress RPM file’s payload, you will need to do that yourself)

Not done yet

  • Signatures verification
  • Payload decompression
  • Digests
1 Like