aboutsummaryrefslogtreecommitdiff
path: root/bpkg/manifest
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-29 12:16:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-30 11:09:44 +0200
commitf23cd3159444361233b257ab8341b260b378064e (patch)
tree9cfea950b37ac09afa6082b5d12098eed3bbb886 /bpkg/manifest
parent2c603c4462fb388cd28106ddf833a43e2e6929f8 (diff)
Add support for checksum verification
Diffstat (limited to 'bpkg/manifest')
-rw-r--r--bpkg/manifest6
1 files changed, 6 insertions, 0 deletions
diff --git a/bpkg/manifest b/bpkg/manifest
index 6bfe8e7..d932b2a 100644
--- a/bpkg/manifest
+++ b/bpkg/manifest
@@ -330,6 +330,7 @@ namespace bpkg
// The following values are only valid in the manifest list.
//
butl::optional<butl::path> location;
+ butl::optional<std::string> sha256sum;
public:
package_manifest (manifest_parser&, bool ignore_unknown = false);
@@ -348,6 +349,11 @@ namespace bpkg
using base_type::base_type;
+ // Checksum of the corresponding repository_manifests.
+ //
+ std::string sha256sum;
+
+ public:
package_manifests () = default;
package_manifests (manifest_parser&, bool ignore_unknown = false);