func/minion

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

 



 func/minion/modules/yumcmd.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9ef30bfd6905dd41eb10acda4f7f52d60a730528
Author: Seth Vidal <skvidal@xxxxxxxxxxxxxxxxx>
Date:   Tue May 18 08:29:47 2010 -0400

    Gael Chamoulaud <gael.chamoulaud at gmail.com>  noticed that the if statement
    was doing the opposite of what we wanted - added a 'not' to fix that.

diff --git a/func/minion/modules/yumcmd.py b/func/minion/modules/yumcmd.py
index 17d8fcb..b361d76 100644
--- a/func/minion/modules/yumcmd.py
+++ b/func/minion/modules/yumcmd.py
@@ -31,7 +31,7 @@ class Yum(func_module.FuncModule):
         ayum.doRepoSetup()
         try:
             ayum.doLock()
-            if pkg in [None, '']:
+            if pkg not in [None, '']:
                 tx_result = ayum.update(pattern=pkg)
             else:
                 tx_result = ayum.update()


_______________________________________________
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