[yum-commits] plugins/auto-update-debuginfo

skvidal at osuosl.org skvidal at osuosl.org
Wed Jan 6 15:59:12 UTC 2010


 plugins/auto-update-debuginfo/auto-update-debuginfo.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit d8c2b0c404bc7c7fe71078110c333e4a5f3f52aa
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Jan 6 10:59:03 2010 -0500

    make auto update plugin use conduit.info() instead of print
    yum bug 384

diff --git a/plugins/auto-update-debuginfo/auto-update-debuginfo.py b/plugins/auto-update-debuginfo/auto-update-debuginfo.py
index ddca13c..bb722fc 100644
--- a/plugins/auto-update-debuginfo/auto-update-debuginfo.py
+++ b/plugins/auto-update-debuginfo/auto-update-debuginfo.py
@@ -24,7 +24,7 @@ from yum.plugins import TYPE_CORE
 requires_api_version = '2.1'
 plugin_type = (TYPE_CORE,)
 
-def enable_debuginfo_repos(yb):
+def enable_debuginfo_repos(yb, conduit):
     # We need to make sure the normal repos. are setup, before we add some...
     yb.pkgSack
 
@@ -36,7 +36,7 @@ def enable_debuginfo_repos(yb):
         if di in repos:
             continue
         for r in yb.repos.findRepos(di):
-            print 'Enabling %s: %s' % (r.id, r.name)
+            conduit.info(2, 'Enabling %s: %s' % (r.id, r.name))
             r.enable()
             yb.doRepoSetup(thisrepo=r.id)
 
@@ -52,5 +52,5 @@ def postreposetup_hook(conduit):
     if num:
         if hasattr(conduit, 'registerPackageName'):
             conduit.registerPackageName("yum-plugin-auto-update-debug-info")
-        print "Found %d installed debuginfo package(s)" % num
-        enable_debuginfo_repos(yb)
+        conduit.info(2, "Found %d installed debuginfo package(s)" % num)
+        enable_debuginfo_repos(yb, conduit)


More information about the Yum-commits mailing list