package rpmfile

  1. Overview
  2. Docs

Module RpmfileSource

RPM package metadata reader.

Sourcetype lead = Lead.t
Sourcetype header = (int * Header.index_value) list
Sourcetype metadata = Types.metadata = {
  1. lead : lead;
  2. signature : header;
  3. header : header;
}
Sourcemodule P (_ : Selector.S) : sig ... end

Angstrom parsers.

Sourcemodule Reader (_ : Selector.S) : sig ... end

Standard reader with poor performance for reading from string or file.

Sourcemodule Selector : sig ... end

Predicate for parsing only necessary tags.

Sourcemodule Types : sig ... end
Sourcemodule Tag : sig ... end
Sourcemodule D : sig ... end

value type's decoders.

Sourcemodule Header : sig ... end

Representation of Header and Signature sections.

Sourcemodule Lead : sig ... end

Representation of Lead section.

Sourceexception Not_found of string
Sourceexception Decode_error of string
Sourceval get_value : 'a -> ('a * 'b) list -> 'b

Help function for getting value from assoc list.

Sourceval get : ?msg:string -> 'a D.decoder -> int -> metadata -> 'a

get ?msg decoder tag metadata to find value by tag and decoder it.

Sourceval get_opt : 'a D.decoder -> int -> metadata -> 'a option

Similar to get function, but returns an optional type instead of exceptions if the tag is not found.

Sourceval get_from_signature : ?msg:string -> 'a D.decoder -> int -> metadata -> 'a

Similar to get function, but for Signature section.

Sourceval get_opt_from_signature : 'a D.decoder -> int -> metadata -> 'a option
Sourceval name : metadata -> string
Sourceval summary' : metadata -> string list
Sourceval summary : metadata -> string
Sourceval description' : metadata -> string list
Sourceval description : metadata -> string
Sourceval build_time : metadata -> int
  • returns

    Unix-time.

Sourceval build_host : metadata -> string
Sourceval size : metadata -> int

Sum of the sizes of the regular files in the archive.

Sourceval os : metadata -> string
Sourceval license : metadata -> string
Sourceval vendor : metadata -> string
Sourceval version : metadata -> string
Sourceval release : metadata -> string
Sourceval packager : metadata -> string
Sourceval distribution : metadata -> string
Sourceval group : metadata -> string list
Sourceval url : metadata -> string
Sourceval dist_url : metadata -> string
Sourceval arch : metadata -> string
Sourceval archive_size : metadata -> int option
Sourceval md5 : metadata -> Bigstringaf.t option
Sourceval sha1 : metadata -> Bigstringaf.t
Sourceval payload_size : metadata -> int
Sourceval payload_format : metadata -> string
Sourceval payload_compressor : metadata -> string
Sourceval payload_flags : metadata -> string
Sourceval source_rpm : metadata -> string
Sourceval filenames : metadata -> string list
Sourceval platform : metadata -> string
Sourceval provide_names : metadata -> string list
Sourceval require_names : metadata -> string list