diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-22 15:02:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-22 17:27:41 +0300 |
commit | f619db022734dff6b988c514e3a292a5c7babaf0 (patch) | |
tree | 73ab481eeb0ed524168e00f89d55dc2d3a91b9bd /bpkg/pkg-checkout.cxx | |
parent | 6ec24eebcb42c0db205f9fff3f2716b84c6fcabf (diff) |
Invent repository_state() function
Diffstat (limited to 'bpkg/pkg-checkout.cxx')
-rw-r--r-- | bpkg/pkg-checkout.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bpkg/pkg-checkout.cxx b/bpkg/pkg-checkout.cxx index 7377b8e..f068b54 100644 --- a/bpkg/pkg-checkout.cxx +++ b/bpkg/pkg-checkout.cxx @@ -4,8 +4,6 @@ #include <bpkg/pkg-checkout.hxx> -#include <libbutl/sha256.mxx> - #include <libbpkg/manifest.hxx> #include <bpkg/package.hxx> @@ -118,7 +116,7 @@ namespace bpkg // dir_path sd (c / repos_dir); - sd /= dir_path (sha256 (rl.canonical_name ()).abbreviated_string (16)); + sd /= repository_state (rl); sd /= dir_path (pl->fragment); sd /= path_cast<dir_path> (pl->location); |