[PATCH] added import from yum module to allow verify to run

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

 



Signed-off-by: Greg Swift <gregswift@xxxxxxxxx>
---
 func/minion/modules/rpms.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/func/minion/modules/rpms.py b/func/minion/modules/rpms.py
index b3eb11e..909f5d9 100644
--- a/func/minion/modules/rpms.py
+++ b/func/minion/modules/rpms.py
@@ -48,10 +48,10 @@ class RpmModule(func_module.FuncModule):
         Returns information on the verified package(s).
         """
         results = []
+        from yum import YumBase
         for rpm in self.glob(pattern, False):
             name = rpm[0]
-
-            yb = yum.YumBase()
+            yb = YumBase()
             pkgs = yb.rpmdb.searchNevra(name)
             for pkg in pkgs:
                 errors = pkg.verify()
-- 
1.7.4

_______________________________________________
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