-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
@@ -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(); |
There was a problem hiding this comment.
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; } |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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/module/module_sack_impl.hpp
Outdated
@@ -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); |
There was a problem hiding this comment.
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?
There is no resolving yet, so no active modules, but once it's added, the methods for setting and getting active modules are already there.
LGTM |
No description provided.