aboutsummaryrefslogtreecommitdiff
path: root/bpkg/types-parsers.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-10-06 22:16:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-10-07 13:20:53 +0300
commite253cd97c6a8d55a5be19731d58769f4663ab2d1 (patch)
tree44a976e7b4ac4d55212cd0b7f2c52a5bf18d8516 /bpkg/types-parsers.hxx
parented3452457b33bb7a4b2f0abb3ae1fc53f826bc9e (diff)
Add support for applying backward compatibility workarounds to packages.manifest file generated by rep-create
Diffstat (limited to 'bpkg/types-parsers.hxx')
-rw-r--r--bpkg/types-parsers.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/bpkg/types-parsers.hxx b/bpkg/types-parsers.hxx
index d687156..007d754 100644
--- a/bpkg/types-parsers.hxx
+++ b/bpkg/types-parsers.hxx
@@ -7,6 +7,8 @@
#ifndef BPKG_TYPES_PARSERS_HXX
#define BPKG_TYPES_PARSERS_HXX
+#include <libbutl/standard-version.hxx>
+
#include <libbpkg/manifest.hxx>
#include <bpkg/types.hxx>
@@ -59,6 +61,19 @@ namespace bpkg
};
template <>
+ struct parser<butl::standard_version>
+ {
+ static void
+ parse (butl::standard_version&, bool&, scanner&);
+
+ static void
+ merge (butl::standard_version& b, const butl::standard_version& a)
+ {
+ b = a;
+ }
+ };
+
+ template <>
struct parser<auth>
{
static void