aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-fetch.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-19 21:47:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-21 17:42:43 +0300
commit89dd478de7cf075beac69d0145df46f914cf35cf (patch)
treebe960f2406d087135c6456cff654de1f24a91557 /bpkg/rep-fetch.hxx
parentd75d1d9e1c5b03b17fdea1fa3638db2bfe5e8d12 (diff)
Add support for pkg-checkout
Diffstat (limited to 'bpkg/rep-fetch.hxx')
-rw-r--r--bpkg/rep-fetch.hxx17
1 files changed, 14 insertions, 3 deletions
diff --git a/bpkg/rep-fetch.hxx b/bpkg/rep-fetch.hxx
index c54119f..cfd5f81 100644
--- a/bpkg/rep-fetch.hxx
+++ b/bpkg/rep-fetch.hxx
@@ -27,9 +27,20 @@ namespace bpkg
struct rep_fetch_data
{
- std::vector<repository_manifest> repositories;
- std::vector<package_manifest> packages;
- shared_ptr<const bpkg::certificate> certificate; // Can be NULL.
+ using repository = repository_manifest;
+
+ struct package
+ {
+ package_manifest manifest;
+ string repository_state; // See package_location::state.
+ };
+
+ std::vector<repository> repositories;
+ std::vector<package> packages;
+
+ // For base repo (can be NULL).
+ //
+ shared_ptr<const bpkg::certificate> certificate;
};
rep_fetch_data