package opam-repository
Install
Dune Dependency
Authors
-
David Allsopp
-
VVincent Bernardoff <vb@luminar.eu.org>
-
RRaja Boujbel <raja.boujbel@ocamlpro.com>
-
KKate Deplaix <kit-ty-kate@outlook.com>
-
RRoberto Di Cosmo <roberto@dicosmo.org>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
LLouis Gesbert <louis.gesbert@ocamlpro.com>
-
FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
GGuillem Rieu <guillem.rieu@ocamlpro.com>
-
RRalf Treinen <ralf.treinen@pps.jussieu.fr>
-
FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=da12c9c417d078535f66758a36941e3f
sha512=6ad6d0b67c8252444872bb652d85f2d5a35e63df1b25f1d11c23aa39b2ae9e6d075cfa55ece2a4c8875afcc0df94691d05cd058f61744fd9b7c468afa192de09
doc/opam-repository/OpamRepositoryBackend/index.html
Module OpamRepositoryBackend
Source
Signature for repository handlers and some helpers for the repository type
type update =
| Update_full of OpamTypes.dirname
(*No previous known state, the full contents have been put in the given temporary directory
*)| Update_patch of OpamTypes.filename
(*The given patch file corresponds to the update, i.e. applying it to the local repository with 'patch -p1' would get it to the upstream state
*)| Update_empty
(*The repository is already up to date
*)| Update_err of exn
(*Failed to obtain the update
*)
Type returned by repository updates.
Pretty-print
Compare repositories
check_digest file expected
check that the file
digest is the one expected
.
val job_text :
OpamTypes.repository_name ->
string ->
'a OpamProcess.job ->
'a OpamProcess.job
Adds a label to the given job, for the corresponding repository name and action
val get_diff :
OpamTypes.dirname ->
OpamTypes.basename ->
OpamTypes.basename ->
OpamTypes.filename option OpamProcess.job
get_diff parent_dir subdir1 subdir2
computes the diff between the two subdirs of parent_dir
, returns None if they are equal, and the corresponding patch otherwise.
Note: this relies on the diff -ruN
command, a built-in diff may be more portable -- in particular, -u
, -N
are not POSIX, and recursive diffs might not be completely reliable. It also assumes text files only, and fails otherwise.