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.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bpkg/manifest-utility.cxx') diff --git a/bpkg/manifest-utility.cxx b/bpkg/manifest-utility.cxx index 74daf6b..bf4956b 100644 --- a/bpkg/manifest-utility.cxx +++ b/bpkg/manifest-utility.cxx @@ -68,7 +68,9 @@ namespace bpkg } version - parse_package_version (const char* s, bool allow_wildcard) + parse_package_version (const char* s, + bool allow_wildcard, + bool fold_zero_revision) { using traits = string::traits_type; @@ -82,7 +84,7 @@ namespace bpkg try { - version r (p); + version r (p, fold_zero_revision); if (r.release && r.release->empty ()) throw invalid_argument ("earliest version"); -- cgit v1.1