aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest-utility.cxx
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.cxx
parent7b5a0b55569331560f9cb6439ee818c3ce5d8428 (diff)
Adapt to optional package revision
Diffstat (limited to 'bpkg/manifest-utility.cxx')
-rw-r--r--bpkg/manifest-utility.cxx6
1 files changed, 4 insertions, 2 deletions
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");