Merge pull request #2658 from dekimsey/yum-channel-support

Fix yum module failing to initalize yum plugins
reviewable/pr18780/r1
Toshio Kuratomi 9 years ago
commit 0d23b3df52

@ -195,6 +195,7 @@ def yum_base(conf_file=None):
my = yum.YumBase() my = yum.YumBase()
my.preconf.debuglevel=0 my.preconf.debuglevel=0
my.preconf.errorlevel=0 my.preconf.errorlevel=0
my.preconf.plugins = True
if conf_file and os.path.exists(conf_file): if conf_file and os.path.exists(conf_file):
my.preconf.fn = conf_file my.preconf.fn = conf_file
if os.geteuid() != 0: if os.geteuid() != 0:

Loading…
Cancel
Save