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.cxx | |
parent | 668d33eb875572f6c2dec08b5908381558bc91b7 (diff) |
Add system_package_status to system_repository entries
Diffstat (limited to 'bpkg/system-repository.cxx')
-rw-r--r-- | bpkg/system-repository.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bpkg/system-repository.cxx b/bpkg/system-repository.cxx index d7a47b7..c308ddb 100644 --- a/bpkg/system-repository.cxx +++ b/bpkg/system-repository.cxx @@ -6,9 +6,12 @@ namespace bpkg { const version& system_repository:: - insert (const package_name& name, const version& v, bool authoritative) + insert (const package_name& name, + const version& v, + bool authoritative, + const system_package_status* s) { - auto p (map_.emplace (name, system_package {v, authoritative})); + auto p (map_.emplace (name, system_package {v, authoritative, s})); if (!p.second) { @@ -22,6 +25,7 @@ namespace bpkg { sp.authoritative = authoritative; sp.version = v; + sp.system_status = s; } } |