@@ -504,17 +504,14 @@ bool ProjMgrWorker::LoadPacks(ContextItem& context) {
504504
505505bool ProjMgrWorker::CheckMissingPackRequirements (const std::string& contextName)
506506{
507- if (!m_debug) {
508- // perform check only in debug mode
509- return true ;
510- }
511507 bool bRequiredPacksLoaded = true ;
512508 // check if all pack requirements are fulfilled
513509 for (auto pack : m_loadedPacks) {
514510 RtePackageMap allRequiredPacks;
515511 pack->GetRequiredPacks (allRequiredPacks, m_model);
516512 for (auto [id, p] : allRequiredPacks) {
517- if (!p) {
513+ bool incompatible = ProjMgrUtils::ContainsIncompatiblePack (m_loadedPacks, id);
514+ if ((!p && m_debug) || incompatible) {
518515 bRequiredPacksLoaded = false ;
519516 string msg;
520517 if (!contextName.empty ()) {
@@ -3673,13 +3670,11 @@ bool ProjMgrWorker::ProcessContext(ContextItem& context, bool loadGenFiles, bool
36733670 ret &= ProcessConfigFiles (context);
36743671 ret &= ProcessComponentFiles (context);
36753672 ret &= ProcessExecutes (context);
3676- bool bUnresolvedDependencies = false ;
36773673 if (resolveDependencies) {
36783674 // TODO: Add uniquely identified missing dependencies to RTE Model
36793675
36803676 // Get dependency validation results
36813677 if (!ValidateContext (context)) {
3682- bUnresolvedDependencies = true ;
36833678 string msg = " dependency validation for context '" + context.name + " ' failed:" ;
36843679 set<string> results;
36853680 FormatValidationResults (results, context);
@@ -3693,9 +3688,7 @@ bool ProjMgrWorker::ProcessContext(ContextItem& context, bool loadGenFiles, bool
36933688 }
36943689 }
36953690 }
3696- if (!ret || bUnresolvedDependencies) {
3697- CheckMissingPackRequirements (context.name );
3698- }
3691+ CheckMissingPackRequirements (context.name );
36993692 return ret;
37003693}
37013694
0 commit comments