From 705fee9daec0f056af8eff869498bedc9398face Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 18 Jan 2008 17:27:20 -0500 Subject: remove a seemingly unneeded import that was causing this module to fail on fc7 also, allow no repos to be specified in check_update() --- func/minion/modules/yumcmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'func') diff --git a/func/minion/modules/yumcmd.py b/func/minion/modules/yumcmd.py index 7677c9a..f952372 100644 --- a/func/minion/modules/yumcmd.py +++ b/func/minion/modules/yumcmd.py @@ -11,7 +11,6 @@ import func_module import yum -from yum import repos # XXX Use internal yum callback or write a useful one. class DummyCallback(object): @@ -46,5 +45,6 @@ class Yum(func_module.FuncModule): ayum = yum.YumBase() ayum.doConfigSetup() ayum.doTsSetup() - ayum.repos.enableRepo(repo) + if repo is not None: + ayum.repos.enableRepo(repo) return map(str, ayum.doPackageLists('updates').updates) -- cgit