Skip to content

Commit

Permalink
Revert force put module to its scope
Browse files Browse the repository at this point in the history
  • Loading branch information
MlgmXyysd committed Feb 8, 2021
1 parent f623a1d commit 32f5349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edxp-core/src/main/cpp/main/src/config_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ namespace edxp {
while (std::getline(ifs, module)) {
const auto &module_pkg_name = GetPackageNameFromBaseApkPath(module);
auto &[module_path, scope] = modules_list[module_pkg_name];
scope.insert(module_pkg_name); // Always add module itself
module_path.assign(std::move(module));
const auto &module_scope_conf = GetConfigPath(module_pkg_name + ".conf");
if (!path_exists<true>(module_scope_conf)) {
Expand All @@ -243,6 +242,8 @@ namespace edxp {
if (!app_pkg_name.empty())
scope.emplace(std::move(app_pkg_name));
}
if (!scope.empty())
scope.insert(module_pkg_name); // Always add module itself
LOGI("scope of %s is:\n %s", module_pkg_name.c_str(), ([&scope = scope]() {
std::ostringstream join;
std::copy(scope.begin(), scope.end(),
Expand Down

0 comments on commit 32f5349

Please sign in to comment.