Skip to content

Commit

Permalink
👷 kernel: add RC to category
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jul 7, 2024
1 parent 8591628 commit 51cf833
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Kernel {
constexpr std::string_view next{"next"};
constexpr std::string_view mainline{"mainline"};
constexpr std::string_view git{"git"};
constexpr std::string_view rc{"rc"};

auto found = ranges::search(m_name, lto);
if (!found.empty()) {
Expand Down Expand Up @@ -90,6 +91,10 @@ class Kernel {
if (!found.empty()) {
return "master branch"sv;
}
found = ranges::search(m_name, rc);
if (!found.empty()) {
return "release candidate"sv;
}

return "stable"sv;
}
Expand Down

0 comments on commit 51cf833

Please sign in to comment.