Skip to content

Commit

Permalink
[projmgr] External Generator PoC - Update
Browse files Browse the repository at this point in the history
  • Loading branch information
brondani committed Oct 9, 2023
1 parent 743430b commit 4c49688
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/projmgr/src/ProjMgrExtGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ bool ProjMgrExtGenerator::GetCgen(const string& contextId, ClayerItem& cgen) {
}
}
}
return false;
return true;
}
5 changes: 4 additions & 1 deletion tools/projmgr/src/ProjMgrWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,10 @@ bool ProjMgrWorker::ExecuteExtGenerator(std::string& generatorId) {

bool ProjMgrWorker::ProcessGeneratedLayers(ContextItem& context) {
ClayerItem cgen;
if (m_extGenerator->GetCgen(context.name, cgen)) {
if (!m_extGenerator->GetCgen(context.name, cgen)) {
return false;
}
if (!cgen.path.empty()) {
context.clayers[cgen.path] = &cgen;
if (cgen.packs.size() > 0) {
vector<PackItem> packRequirements;
Expand Down

0 comments on commit 4c49688

Please sign in to comment.