From fdfd3e0644095022b61316e220fce3f5a7a1a9ef Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 20 Jun 2023 20:22:29 +0300 Subject: Add --mask-repository-uuid pkg-build option --- bpkg/rep-mask.hxx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'bpkg/rep-mask.hxx') diff --git a/bpkg/rep-mask.hxx b/bpkg/rep-mask.hxx index dd9cedf..2185af2 100644 --- a/bpkg/rep-mask.hxx +++ b/bpkg/rep-mask.hxx @@ -13,15 +13,20 @@ namespace bpkg // Note: not a command (at least not yet). // // Mask repositories to pretend they don't exist in the configurations that - // are used as the repository information sources (repo_configs). Also mask - // their complement and prerequisite repositories, recursively, excluding - // those which are complements and/or prerequisites of other unmasked - // repositories. The repositories can be specified either as repository - // location canonical names or URLs. Issue diagnostics and fail if any of - // the specified repositories don't exist in any configuration. + // are used as the repository information sources (repo_configs; + // repositories argument) and/or specific configurations + // (config_uuid_repositories argument). Also mask their complement and + // prerequisite repositories, recursively, excluding those which are + // complements and/or prerequisites of other unmasked repositories. The + // repositories can be specified either as repository location canonical + // names or URLs. Issue diagnostics and fail if any of the specified + // repositories don't exist in any configuration. // // Notes: // + // - The current configurations are only used to resolve the configuration + // UUIDs, if any. + // // - A repository may end up being masked in one configuration but not in // another. // @@ -36,7 +41,9 @@ namespace bpkg // NOTE: repo_configs needs to be filled prior to the function call. // void - rep_mask (const strings&); + rep_mask (const strings& repositories, // + const strings& config_uuid_repositories, // = + linked_databases& current_configs); // Return true if a repository is masked in the specified configuration. // -- cgit v1.1