From 1ad6dad8da0d51e9522f9d27cf48531fa23b24ba Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 30 Aug 2019 20:56:26 +0300 Subject: Adapt to optional package revision --- bpkg/manifest-utility.hxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bpkg/manifest-utility.hxx') 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 -- cgit v1.1