aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-07 13:31:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-07 13:31:18 +0200
commit7144cf3d2f25d546fd00df4fd1ddcda3f18e2c95 (patch)
treeed82acfbd5cfa8448914e6e1c8e9a0134a1c9cb1 /bpkg/manifest
parenta21338c6459123f8303488d0cd98d4d6b4519c67 (diff)
Add support for ignoring unknown manifest entries
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest16
1 files changed, 10 insertions, 6 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 106b6ca..1d554d4 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -311,8 +311,10 @@ namespace bpkg
butl::optional<butl::path> location;
public:
- package_manifest (manifest_parser&);
- package_manifest (manifest_parser&, manifest_name_value start);
+ package_manifest (manifest_parser&, bool ignore_unknown = false);
+ package_manifest (manifest_parser&,
+ manifest_name_value start,
+ bool ignore_unknown = false);
void
serialize (manifest_serializer&) const;
@@ -326,7 +328,7 @@ namespace bpkg
using base_type::base_type;
package_manifests () = default;
- package_manifests (manifest_parser&);
+ package_manifests (manifest_parser&, bool ignore_unknown = false);
void
serialize (manifest_serializer&) const;
@@ -477,8 +479,10 @@ namespace bpkg
butl::optional<std::string> description;
public:
- repository_manifest (manifest_parser&);
- repository_manifest (manifest_parser&, manifest_name_value start);
+ repository_manifest (manifest_parser&, bool ignore_unknown = false);
+ repository_manifest (manifest_parser&,
+ manifest_name_value start,
+ bool ignore_unknown = false);
void
serialize (manifest_serializer&) const;
@@ -504,7 +508,7 @@ namespace bpkg
using base_type::base_type;
repository_manifests () = default;
- repository_manifests (manifest_parser&);
+ repository_manifests (manifest_parser&, bool ignore_unknown = false);
void
serialize (manifest_serializer&) const;