Skip to content

Commit

Permalink
Fix repos.cpp Rocky 'vault' branch check (#47)
Browse files Browse the repository at this point in the history
* Fix repos.cpp Rocky 'vault' branch check

Signed-off-by: lbgracioso <[email protected]>

* Misspelling fix

* Fix operator

Signed-off-by: lbgracioso <[email protected]>

---------

Signed-off-by: lbgracioso <[email protected]>
  • Loading branch information
lbgracioso committed Mar 4, 2024
1 parent 2a2e501 commit 93c7ce6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/repos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ std::vector<std::string> Repos::getxCATOSImageRepos() const

std::vector<std::string> repos;

std::string latestEL = "9.3";
std::vector<std::string> latestEL = { "8.9", "9.3" };

std::string crb = "CRB";
std::string rockyBranch
Expand All @@ -157,7 +157,8 @@ std::vector<std::string> Repos::getxCATOSImageRepos() const
OpenHPCVersion = "2";
}

if (osVersion != latestEL) {
if (std::find(latestEL.begin(), latestEL.end(), osVersion)
== latestEL.end()) {
rockyBranch = "vault";
}

Expand Down

0 comments on commit 93c7ce6

Please sign in to comment.