diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-21 21:10:09 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-24 17:39:13 +0300 |
commit | 3a6c4ab1b6fc79a6a543088553cdd6bc8cb0a1dd (patch) | |
tree | 1ca0c3b9ef763276ff45c20a62d2504833e5f67d /bpkg/system-repository.hxx | |
parent | 1cab4fbd051ee5a71f073446ad5ad1b3d79f1031 (diff) |
Adapt to inventing package_name type
Diffstat (limited to 'bpkg/system-repository.hxx')
-rw-r--r-- | bpkg/system-repository.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bpkg/system-repository.hxx b/bpkg/system-repository.hxx index eeddf39..ba42b0e 100644 --- a/bpkg/system-repository.hxx +++ b/bpkg/system-repository.hxx @@ -7,7 +7,8 @@ #include <map> -#include <libbpkg/manifest.hxx> +#include <libbpkg/manifest.hxx> // version +#include <libbpkg/package-name.hxx> #include <bpkg/types.hxx> #include <bpkg/utility.hxx> @@ -36,17 +37,17 @@ namespace bpkg { public: const version& - insert (const string& name, const version&, bool authoritative); + insert (const package_name& name, const version&, bool authoritative); const system_package* - find (const string& name) + find (const package_name& name) { auto i (map_.find (name)); return i != map_.end () ? &i->second : nullptr; } private: - std::map<string, system_package> map_; + std::map<package_name, system_package> map_; }; extern system_repository_type system_repository; |