package opam-repomin

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Opam_repomin.OutputSource

Output operations for copying packages.

Sourcetype copy_result = {
  1. copied : OpamPackage.t list;
    (*

    Packages that were copied

    *)
  2. skipped : OpamPackage.t list;
    (*

    Packages skipped (already in output)

    *)
}

Result of a copy operation.

Sourceval dry_run : src:Repo.t -> packages:OpamPackage.t list -> OpamPackage.t list

Return the list of packages that would be copied in a real run.

Sourceval copy : src:Repo.t -> dst:Fpath.t -> packages:OpamPackage.t list -> (copy_result, [ `Msg of string ]) result

Copy packages from src repository to dst directory.

Creates the necessary directory structure under dst/packages/. Skips packages that already exist in the destination.