def _mark_package_install(module, base, pkg_spec):
 try:
  base.install(pkg_spec)
 except dnf.exceptions.MarkingError:
  module.fail_json(msg='No package {} available.'.format(pkg_spec))

def _mark_package_install ( module , base , pkg_spec ) : try : base . install ( pkg_spec ) except dnf . exceptions . MarkingError : module . fail_json ( msg = 'No package {} available.' . format ( pkg_spec ) )
mark the package for install .