[yum-commits] plugins/ps

James Antill james at osuosl.org
Wed Jul 7 21:27:20 UTC 2010


 plugins/ps/ps.py |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 74e39761b95eaa28bf481afd99bb99427bd960b9
Author: James Antill <james at and.org>
Date:   Wed Jul 7 17:24:23 2010 -0400

    Fix annoying warnings for non-cli yum callers

diff --git a/plugins/ps/ps.py b/plugins/ps/ps.py
index 05aa887..50f3428 100644
--- a/plugins/ps/ps.py
+++ b/plugins/ps/ps.py
@@ -28,7 +28,12 @@ import yum.misc as misc
 from yum.plugins import TYPE_INTERACTIVE
 
 from urlgrabber.progress import format_number
-import utils
+try:
+    import utils
+except ImportError:
+    #  This only happens when we are imported but aren't going to be run
+    # due to being type ITERACTIVE.
+    utils = None
 
 import fnmatch
 import time


More information about the Yum-commits mailing list