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