|
|
@ -274,11 +274,10 @@ def ensure(module, base, state, names):
|
|
|
|
# If not already installed, try to install.
|
|
|
|
# If not already installed, try to install.
|
|
|
|
base.group_install(group, const.GROUP_PACKAGE_TYPES)
|
|
|
|
base.group_install(group, const.GROUP_PACKAGE_TYPES)
|
|
|
|
for pkg_spec in pkg_specs:
|
|
|
|
for pkg_spec in pkg_specs:
|
|
|
|
try:
|
|
|
|
# best effort causes to install the latest package
|
|
|
|
base.upgrade(pkg_spec)
|
|
|
|
# even if not previously installed
|
|
|
|
except dnf.exceptions.MarkingError:
|
|
|
|
base.conf.best = True
|
|
|
|
# If not already installed, try to install.
|
|
|
|
base.install(pkg_spec)
|
|
|
|
_mark_package_install(module, base, pkg_spec)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# state == absent
|
|
|
|
# state == absent
|
|
|
|