From dad48d98b1a57706179c34853950588ec75a8467 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 22 Oct 2019 22:49:19 +0300 Subject: Add support for package version constraint in pkg-build command arguments Also document tests, examples, and benchmarks package manifest values. --- bpkg/manifest-utility.hxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bpkg/manifest-utility.hxx') diff --git a/bpkg/manifest-utility.hxx b/bpkg/manifest-utility.hxx index 9f690b4..16546bd 100644 --- a/bpkg/manifest-utility.hxx +++ b/bpkg/manifest-utility.hxx @@ -61,6 +61,17 @@ namespace bpkg fold_zero_revision); } + // Extract the package constraint from either [/] or + // forms, unless version_only is true. For the + // former case return the `== ` constraint. Return nullopt if only + // the package name is specified. + // + optional + parse_package_version_constraint (const char*, + bool allow_wildcard = false, + bool fold_zero_revision = true, + bool version_only = false); + // If the passed location is a relative local path, then assume this is a // relative path to the repository directory and complete it based on the // current working directory. Diagnose invalid locations and throw failed. -- cgit v1.1