From bc24eec7208187e171fd61ced7130fd8e2828257 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 14 Mar 2018 00:54:05 +0300 Subject: Add support for version iteration --- bpkg/pkg-checkout.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/pkg-checkout.cxx') diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx index 14f84cb..6e4a7a5 100644 --- a/bpkg/pkg-checkout.cxx +++ b/bpkg/pkg-checkout.cxx @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -162,6 +163,8 @@ namespace bpkg false /* quiet */, strings ({"config.dist.root=" + c.representation ()})); + string mc (sha256 (o, d / manifest_file)); + if (p != nullptr) { // Clean up the source directory and archive of the package we are @@ -175,6 +178,7 @@ namespace bpkg p->repository = rl; p->src_root = d.leaf (); p->purge_src = true; + p->manifest_checksum = move (mc); db.update (p); } @@ -194,6 +198,7 @@ namespace bpkg false, d.leaf (), // Source root. true, // Purge directory. + move (mc), nullopt, // No output directory yet. {}}); // No prerequisites captured yet. -- cgit v1.1