diff options
Diffstat (limited to 'bpkg/system-repository.cxx')
-rw-r--r-- | bpkg/system-repository.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bpkg/system-repository.cxx b/bpkg/system-repository.cxx index fae8841..c308ddb 100644 --- a/bpkg/system-repository.cxx +++ b/bpkg/system-repository.cxx @@ -1,17 +1,17 @@ // file : bpkg/system-repository.cxx -*- C++ -*- -// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #include <bpkg/system-repository.hxx> namespace bpkg { - system_repository_type system_repository; - - const version& system_repository_type:: - insert (const package_name& name, const version& v, bool authoritative) + const version& system_repository:: + 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) { @@ -25,6 +25,7 @@ namespace bpkg { sp.authoritative = authoritative; sp.version = v; + sp.system_status = s; } } |