func/minion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 func/minion/modules/yumcmd.py |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 2a3d6c467377d6064cb43ff60d120e74b1a7292f
Author: Seth Vidal <skvidal@xxxxxxxxxxxxxxxxx>
Date:   Mon Mar 29 16:47:33 2010 -0400

    clean up some very minor items in the yumcmd module

diff --git a/func/minion/modules/yumcmd.py b/func/minion/modules/yumcmd.py
index 7e8c312..93e96b2 100644
--- a/func/minion/modules/yumcmd.py
+++ b/func/minion/modules/yumcmd.py
@@ -25,13 +25,13 @@ class Yum(func_module.FuncModule):
     description = "Package updates through yum."
 
     def update(self, pkg=None):
-	import yum
+    import yum
         ayum = yum.YumBase()
         ayum.doGenericSetup()
         ayum.doRepoSetup()
         try:
             ayum.doLock()
-            if pkg != None:
+            if pkg in [None, '']:
                 tx_result = ayum.update(pattern=pkg)
             else:
                 tx_result = ayum.update()
@@ -53,7 +53,7 @@ class Yum(func_module.FuncModule):
         if type(filter) not in [list, tuple]:
             filter = [filter]
 
-	import yum
+    import yum
         ayum = yum.YumBase()
         ayum.doConfigSetup()
         ayum.doTsSetup()


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux