File tree 1 file changed +2
-1
lines changed
edxp-core/src/main/cpp/main/src
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,6 @@ namespace edxp {
226
226
while (std::getline (ifs, module)) {
227
227
const auto &module_pkg_name = GetPackageNameFromBaseApkPath (module);
228
228
auto &[module_path, scope] = modules_list[module_pkg_name];
229
- scope.insert (module_pkg_name); // Always add module itself
230
229
module_path.assign (std::move (module));
231
230
const auto &module_scope_conf = GetConfigPath (module_pkg_name + " .conf" );
232
231
if (!path_exists<true >(module_scope_conf)) {
@@ -243,6 +242,8 @@ namespace edxp {
243
242
if (!app_pkg_name.empty ())
244
243
scope.emplace (std::move (app_pkg_name));
245
244
}
245
+ if (!scope.empty ())
246
+ scope.insert (module_pkg_name); // Always add module itself
246
247
LOGI (" scope of %s is:\n %s" , module_pkg_name.c_str (), ([&scope = scope]() {
247
248
std::ostringstream join;
248
249
std::copy (scope.begin (), scope.end (),
You can’t perform that action at this time.
0 commit comments