package debian-formats

  1. Overview
  2. Docs
Parse debian files

Install

Dune Dependency

Authors

Maintainers

Sources

debian-formats-v0.1.2.tbz
sha256=927713b273e76d15950e805713444c987fe246683a1e44c074dd496b72d49d04
sha512=1125cd369b3b619b01145e4453ff7fa5ec836be21545e1dabc376e5f0b0ec0ae802a116e48cca18e17ea8c527f52ba42c06355cb85fbe262e74ac5c5d9c64eca

doc/debian-formats/DebianFormats/Control/index.html

Module DebianFormats.ControlSource

Sourcetype source_section = {
  1. source : name;
  2. section : name;
  3. priority : name;
  4. maintainer : string;
  5. uploaders : string list;
  6. standards_version : version;
  7. build_depends : (vpkg * (bool * architecture) list) list list;
  8. build_depends_indep : (vpkg * (bool * architecture) list) list list;
  9. build_conflicts : (vpkg * (bool * architecture) list) list;
  10. build_conflicts_indep : (vpkg * (bool * architecture) list) list;
}

debian source section format

Sourcetype binary_section = {
  1. package : name;
  2. essential : bool;
  3. depends : vpkg list list;
  4. pre_depends : vpkg list list;
  5. recommends : vpkg list list;
  6. suggests : vpkg list;
  7. enhances : vpkg list;
  8. conflicts : vpkg list;
  9. breaks : vpkg list;
  10. replaces : vpkg list;
  11. provides : veqpkg list;
  12. extras : (string * string) list;
}

debian binary sections format

Sourceval parse_name : string -> string
Sourceval parse_vpkg : string -> string * (string * string) option
Sourceval parse_veqpkg : string -> string * (string * string) option
Sourceval parse_conj : string -> (string * (string * string) option) list
Sourceval parse_essential : string -> bool
Sourceval parse_source_fields : (string * name list) list -> source_section option
Sourceval parse_binary_fields : string list -> (string * name list) list -> binary_section option
Sourceval filename : string
Sourceval default : unit -> source_section * binary_section list
OCaml

Innovation. Community. Security.