Skip to content

Commit

Permalink
Install module package IDs on module enable
Browse files Browse the repository at this point in the history
Module packages should be explicitly specified when enabling modules,
see rpm-software-management/libdnf#1656.
  • Loading branch information
evan-goode committed Apr 23, 2024
1 parent 87eb5a7 commit 62f6735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnf/module/module_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,12 +434,12 @@ def _create_module_dict_and_enable(self, module_list, spec, enable=True):
for key in sorted(streamDict.keys()):
if key == stream:
if enable:
self.base._moduleContainer.enable(moduleName, key)
self.base._moduleContainer.enable(moduleName, key, streamDict[key])
continue
del streamDict[key]
elif enable:
for key in streamDict.keys():
self.base._moduleContainer.enable(moduleName, key)
self.base._moduleContainer.enable(moduleName, key, streamDict[key])
assert len(streamDict) == 1
return moduleDict

Expand Down

0 comments on commit 62f6735

Please sign in to comment.