diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-01-18 17:27:20 -0500 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-01-18 17:27:20 -0500 |
commit | 705fee9daec0f056af8eff869498bedc9398face (patch) | |
tree | 444932bbb01ba3e8687465c432dbe3b96646470f /func/minion/modules | |
parent | a6efb74bfb7f13a2c3149dda21c09e1f8ce4208e (diff) | |
download | third_party-func-705fee9daec0f056af8eff869498bedc9398face.tar.gz third_party-func-705fee9daec0f056af8eff869498bedc9398face.tar.xz third_party-func-705fee9daec0f056af8eff869498bedc9398face.zip |
remove a seemingly unneeded import that was causing this module
to fail on fc7
also, allow no repos to be specified in check_update()
Diffstat (limited to 'func/minion/modules')
-rw-r--r-- | func/minion/modules/yumcmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |