[yum-commits] package-cleanup.py

skvidal at osuosl.org skvidal at osuosl.org
Wed Dec 10 14:38:25 UTC 2008


 package-cleanup.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit f8fe55fdb6f39ee8f603aca71a4b7fe6907c4745
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Dec 10 09:36:37 2008 -0500

    make -q in package-cleanup actually be quiet
    closes rh bug #471244

diff --git a/package-cleanup.py b/package-cleanup.py
index 92e7a41..7b085f8 100755
--- a/package-cleanup.py
+++ b/package-cleanup.py
@@ -34,8 +34,14 @@ from yum.misc import getCacheDir
 
 
 def initYum(opts):
+    debuglevel=2
+    errorlevel=2
+    if opts.quiet:
+        debuglevel=0
+        errorlevel=0
     my = yum.YumBase()
-    my.doConfigSetup(opts.conffile,init_plugins=not opts.noplugins)
+    my.doConfigSetup(opts.conffile,init_plugins=not opts.noplugins,
+                     debuglevel=debuglevel,errorlevel=errorlevel)
     if opts.orphans:
         # make it work as non root user.
         if my.conf.uid != 0:


More information about the Yum-commits mailing list