diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-01-19 16:25:36 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-01-19 16:28:58 +0300 |
commit | f42795b9a9b435f9db94922eba47e44fa18f56e5 (patch) | |
tree | 80b2523414100a1bc0e5f1c7a30d30f8c47253f5 /bpkg/system-repository.hxx | |
parent | 668d33eb875572f6c2dec08b5908381558bc91b7 (diff) |
Add system_package_status to system_repository entries
Diffstat (limited to 'bpkg/system-repository.hxx')
-rw-r--r-- | bpkg/system-repository.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bpkg/system-repository.hxx b/bpkg/system-repository.hxx index f33d622..8171a0c 100644 --- a/bpkg/system-repository.hxx +++ b/bpkg/system-repository.hxx @@ -12,6 +12,8 @@ #include <bpkg/types.hxx> #include <bpkg/utility.hxx> +#include <bpkg/system-package-manager.hxx> + namespace bpkg { // A map of discovered system package versions. The information can be @@ -30,13 +32,22 @@ namespace bpkg version_type version; bool authoritative; + + // If the information is authoritative then this member indicates whether + // the version came from the system package manager (not NULL) or + // user/fallback (NULL). + // + const system_package_status* system_status; }; class system_repository { public: const version& - insert (const package_name& name, const version&, bool authoritative); + insert (const package_name& name, + const version&, + bool authoritative, + const system_package_status* = nullptr); const system_package* find (const package_name& name) |