def _base(module, conf_file, disable_gpg_check, disablerepo, enablerepo, installroot):
 base = dnf.Base()
 _configure_base(module, base, conf_file, disable_gpg_check, installroot)
 _specify_repositories(base, disablerepo, enablerepo)
 base.fill_sack(load_system_repo='auto')
 return base

def _base ( module , conf_file , disable_gpg_check , disablerepo , enablerepo , installroot ) : base = dnf . Base ( ) _configure_base ( module , base , conf_file , disable_gpg_check , installroot ) _specify_repositories ( base , disablerepo , enablerepo ) base . fill_sack ( load_system_repo = 'auto' ) return base
return a fully configured dnf base object .