Skip to content

Commit

Permalink
modules: Fix detecting module dependencies when no stream is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
pkratoch committed Nov 15, 2023
1 parent 2d77952 commit b14bb3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libdnf5/module/module_sack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,9 @@ void ModuleSack::Impl::enable_dependent_modules() {
const auto & module_to_enable = modules_to_enable.find(module_name);
// If this module_item is in the modules_to_enable, enable it + process its dependencies
if (module_to_enable != modules_to_enable.end() &&
std::find(module_to_enable->second.begin(), module_to_enable->second.end(), module_stream) !=
module_to_enable->second.end()) {
(module_to_enable->second.empty() ||
std::find(module_to_enable->second.begin(), module_to_enable->second.end(), module_stream) !=
module_to_enable->second.end())) {
modules_to_enable.erase(module_to_enable);
module_db->change_status(module_name, ModuleStatus::ENABLED);
module_db->change_stream(module_name, module_stream);
Expand Down

0 comments on commit b14bb3c

Please sign in to comment.