package opam-repository

  1. Overview
  2. Docs

Defines the file hierarchy in repositories

Repository local path: $opam/repo/<name>

Return the repo file

val packages_dir : OpamTypes.dirname -> OpamTypes.dirname

Packages folder: $repo/packages

val packages : OpamTypes.dirname -> string option -> OpamTypes.package -> OpamTypes.dirname

Package folder: $repo/packages/XXX/$NAME.$VERSION

Return the OPAM file for a given package: $repo/packages/XXX/$NAME.$VERSION/opam

Return the description file for a given package: $repo/packages/XXX/$NAME.VERSION/descr

urls $repo/package/XXX/$NAME.$VERSION/url

val files : OpamTypes.dirname -> string option -> OpamTypes.package -> OpamTypes.dirname

files $repo/packages/XXX/$NAME.$VERSION/files

module Remote : sig ... end

Url constructor for parts of remote repositories, when applicable (http and rsync). Function take the repo's root url.

OCaml

Innovation. Community. Security.