aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-fetch.hxx
diff options
context:
space:
mode:
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