From aff5531fa1e63e1156b1b0d6e2fa8750d28ce06f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 7 Mar 2018 10:18:18 +0200 Subject: Document package iteration mechanism, external package term --- bpkg/pkg-fetch.cli | 8 ++++---- bpkg/pkg-unpack.cli | 28 ++++++++++++++++++++-------- 2 files changed, 24 insertions(+), 12 deletions(-) (limited to 'bpkg') diff --git a/bpkg/pkg-fetch.cli b/bpkg/pkg-fetch.cli index 213c536..7228be0 100644 --- a/bpkg/pkg-fetch.cli +++ b/bpkg/pkg-fetch.cli @@ -15,7 +15,7 @@ namespace bpkg "\h|SYNOPSIS| - \c{\b{bpkg pkg-fetch} [] (\b{/} | \b{-e} )} + \c{\b{bpkg pkg-fetch} [] (\b{/} | \b{--existing|-e} )} \h|DESCRIPTION| @@ -32,9 +32,9 @@ namespace bpkg If the \cb{--existing|-e} option is used, then instead of the name and version arguments, \cb{pkg-fetch} expects a local path to an existing package archive. In this case, \cb{bpkg} will use the archive in place, - without copying it to the configuration or package cache directories. - Also, unless the \cb{--purge|-p} option is specified, \cb{bpkg} will not - attempt to remove this archive when the package is later purged with the + without copying it into the configuration directory. Also, unless the + \cb{--purge|-p} option is specified, \cb{bpkg} will not attempt to remove + this archive when the package is later purged with the \l{bpkg-pkg-purge(1)} command." } diff --git a/bpkg/pkg-unpack.cli b/bpkg/pkg-unpack.cli index c13d3dc..44447c5 100644 --- a/bpkg/pkg-unpack.cli +++ b/bpkg/pkg-unpack.cli @@ -11,11 +11,11 @@ include ; namespace bpkg { { - " ", + " ", "\h|SYNOPSIS| - \c{\b{bpkg pkg-unpack} [] ( | \b{-e} )} + \c{\b{bpkg pkg-unpack} [] ( | \b{--existing|-e} )} \h|DESCRIPTION| @@ -25,16 +25,28 @@ namespace bpkg If the \cb{--existing|-e} option is used, then instead of the package name, \cb{pkg-unpack} expects a local path to an existing package - directory. In this case, \cb{bpkg} will use the directory in place, - without copying it to the configuration or package cache directories. - Also, unless the \cb{--purge|-p} option is specified, \cb{bpkg} will not - attempt to remove this directory when the package is later purged with - the \l{bpkg-pkg-purge(1)} command. + directory. In this case, \cb{bpkg} will use the (source) directory in + place, without copying it into the configuration directory. Also, unless + the \cb{--purge|-p} option is specified, \cb{bpkg} will not attempt to + remove this directory when the package is later purged with the + \l{bpkg-pkg-purge(1)} command. Such a package is called \i{external}. If \cb{--existing|-e} is specified together with the \cb{--replace|-r} option, then \cb{pkg-unpack} will replace the archive and/or source directory of a package that is already in the \cb{unpacked} or - \cb{fetched} state." + \cb{fetched} state. + + An external package triggers several changes in semantics compared to a + normal package: The package (output) directory inside the configuration + is called just rather than \cb{-}. It is also assumed + that the packaging information (package manifest and lockfile) for such + packages may change without incrementing the package version (for + example, during development). To support this, \cb{bpkg} implements the + \i{package iteration} mechanism which may result in iteration numbers to + be shown as part of the package version, for example, \cb{1.2.3#1} (see + \l{bpkg#package-version Package Version}). Finally, it is possible to + replace one external package version with another while preserving its + output directory by specifying the \cb{--keep-out} option." } class pkg_unpack_options: configuration_options -- cgit v1.1