aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest-utility.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-30 20:56:26 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-09-05 16:55:45 +0300
commit1ad6dad8da0d51e9522f9d27cf48531fa23b24ba (patch)
tree4f53f85678348e605d282bad20b327653faa0729 /bpkg/manifest-utility.hxx
parent7b5a0b55569331560f9cb6439ee818c3ce5d8428 (diff)
Adapt to optional package revision
Diffstat (limited to 'bpkg/manifest-utility.hxx')
-rw-r--r--bpkg/manifest-utility.hxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/bpkg/manifest-utility.hxx b/bpkg/manifest-utility.hxx
index 6c88f1f..9f690b4 100644
--- a/bpkg/manifest-utility.hxx
+++ b/bpkg/manifest-utility.hxx
@@ -47,12 +47,18 @@ namespace bpkg
// Return empty version if none is specified.
//
version
- parse_package_version (const char*, bool allow_wildcard = false);
+ parse_package_version (const char*,
+ bool allow_wildcard = false,
+ bool fold_zero_revision = true);
inline version
- parse_package_version (const string& s, bool allow_wildcard = false)
+ parse_package_version (const string& s,
+ bool allow_wildcard = false,
+ bool fold_zero_revision = true)
{
- return parse_package_version (s.c_str (), allow_wildcard);
+ return parse_package_version (s.c_str (),
+ allow_wildcard,
+ fold_zero_revision);
}
// If the passed location is a relative local path, then assume this is a