Opam_repomin.OutputSourceOutput operations for copying packages.
type copy_result = {copied : OpamPackage.t list;Packages that were copied
*)skipped : OpamPackage.t list;Packages skipped (already in output)
*)}Result of a copy operation.
Return the list of packages that would be copied in a real run.
val copy :
src:Repo.t ->
dst:Fpath.t ->
packages:OpamPackage.t list ->
(copy_result, [ `Msg of string ]) resultCopy packages from src repository to dst directory.
Creates the necessary directory structure under dst/packages/. Skips packages that already exist in the destination.