summaryrefslogtreecommitdiff
path: root/apexd/apex_file_repository.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apexd/apex_file_repository.cpp')
-rw-r--r--apexd/apex_file_repository.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/apexd/apex_file_repository.cpp b/apexd/apex_file_repository.cpp
index 43b6f6e9..834eef53 100644
--- a/apexd/apex_file_repository.cpp
+++ b/apexd/apex_file_repository.cpp
@@ -279,7 +279,7 @@ Result<int> ApexFileRepository::AddBlockApex(
if (overrides.last_update_seconds.has_value() ||
overrides.block_apex_root_digest.has_value()) {
- block_apex_overrides_.emplace(name, std::move(overrides));
+ block_apex_overrides_.emplace(apex_path, std::move(overrides));
}
// Depending on whether the APEX was a factory version in the host or not,
@@ -412,8 +412,8 @@ Result<const std::string> ApexFileRepository::GetDataPath(
}
std::optional<std::string> ApexFileRepository::GetBlockApexRootDigest(
- const std::string& name) const {
- auto it = block_apex_overrides_.find(name);
+ const std::string& path) const {
+ auto it = block_apex_overrides_.find(path);
if (it == block_apex_overrides_.end()) {
return std::nullopt;
}
@@ -421,8 +421,8 @@ std::optional<std::string> ApexFileRepository::GetBlockApexRootDigest(
}
std::optional<int64_t> ApexFileRepository::GetBlockApexLastUpdateSeconds(
- const std::string& name) const {
- auto it = block_apex_overrides_.find(name);
+ const std::string& path) const {
+ auto it = block_apex_overrides_.find(path);
if (it == block_apex_overrides_.end()) {
return std::nullopt;
}