summaryrefslogtreecommitdiff
path: root/src/buildtool/common/repository_config.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-06-15 14:51:03 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-06-20 17:40:44 +0200
commit9d5047bb2b6d1756385fc4fabf2a3d54d9e9ac93 (patch)
tree7963d227ddc056f65c544e0e086d4a1f34985687 /src/buildtool/common/repository_config.hpp
parent17f2cab4490f075a5cb9e975e4b92c06572270ca (diff)
downloadjustbuild-9d5047bb2b6d1756385fc4fabf2a3d54d9e9ac93.tar.gz
Repository representation: also use string as name in bindings
In this way, we keep the repsitory description more close to a normal multi-repository configuration. The only difference remaining is the absence of repository locations for git-tree roots.
Diffstat (limited to 'src/buildtool/common/repository_config.hpp')
-rw-r--r--src/buildtool/common/repository_config.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/common/repository_config.hpp b/src/buildtool/common/repository_config.hpp
index 85a388fc..e1144789 100644
--- a/src/buildtool/common/repository_config.hpp
+++ b/src/buildtool/common/repository_config.hpp
@@ -176,8 +176,9 @@ class RepositoryConfig {
[[nodiscard]] auto AddToGraphAndGetId(
gsl::not_null<nlohmann::json*> const& graph,
gsl::not_null<int*> const& id_counter,
- gsl::not_null<std::unordered_map<std::string, int>*> const& repo_ids,
- std::string const& repo) const -> std::optional<int>;
+ gsl::not_null<std::unordered_map<std::string, std::string>*> const&
+ repo_ids,
+ std::string const& repo) const -> std::optional<std::string>;
};
#endif // INCLUDED_SRC_BUILDTOOL_COMMON_REPOSITORY_CONFIG_HPP