Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules: Add module goal and resolving #118

Merged
merged 5 commits into from
Nov 9, 2022

Conversation

pkratoch
Copy link
Contributor

@pkratoch pkratoch commented Nov 2, 2022

No description provided.

@@ -45,6 +45,9 @@ class ModuleGoalPrivate {

libdnf::GoalProblem resolve();

size_t count_solver_problems();
std::vector<std::vector<std::tuple<ProblemRules, Id, Id, Id, std::string>>> get_problems();
Copy link
Member

@j-mracek j-mracek Nov 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask you for a doc string?


libdnf::solv::IdQueue list_installs();

::Transaction * get_transaction() { return libsolv_transaction; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask you to add docstrings for methods in class and for class itself?

@@ -57,6 +57,7 @@ class ModuleSack {

/// Return module items in container
const std::vector<std::unique_ptr<ModuleItem>> & get_modules();
std::vector<ModuleItem *> get_active_modules();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you add a doc string?

@@ -67,6 +83,8 @@ class ModuleSack {
/// @since 5.0
std::vector<std::string> get_default_profiles(std::string module_name, std::string module_stream);

std::pair<std::vector<std::vector<std::string>>, ModuleErrorType> resolve_active_module_items(bool debug_solver);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask you for a doc string?

@@ -72,6 +72,9 @@ class ModuleSack::Impl {
// (<name>:<stream>:<context>) into active_modules.
void set_active_modules(ModuleGoalPrivate & goal);

std::pair<std::vector<std::vector<std::string>>, ModuleSack::ModuleErrorType> module_solve(
std::vector<ModuleItem *> module_items, bool debug_solver);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask you for a doc string?

@j-mracek
Copy link
Member

j-mracek commented Nov 9, 2022

LGTM

@j-mracek j-mracek merged commit 5977c7f into rpm-software-management:main Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants