[yum-commits] plugins/security

James Antill james at osuosl.org
Sat Oct 10 14:09:35 UTC 2009


 plugins/security/security.py |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 963f574b9e6c34e1ae29cc9bdaeefa98317cc5d4
Author: James Antill <james at and.org>
Date:   Fri Oct 9 23:24:53 2009 -0400

    Do obsoletes as well as updates in security list excluding

diff --git a/plugins/security/security.py b/plugins/security/security.py
index 7a33869..e71d28a 100755
--- a/plugins/security/security.py
+++ b/plugins/security/security.py
@@ -456,9 +456,9 @@ def ysp_check_func_enter(conduit):
     
     ret = None
     if len(args) >= 2:
-        if ((args[0] == "list") and (args[1] == "updates")):
+        if ((args[0] == "list") and (args[1] in ("obsoletes", "updates"))):
             ret = {"skip": ndata, "list_cmd": True}
-        if ((args[0] == "info") and (args[1] == "updates")):
+        if ((args[0] == "info") and (args[1] in ("obsoletes", "updates"))):
             ret = {"skip": ndata, "list_cmd": True}
     if len(args):
 
@@ -520,6 +520,9 @@ def exclude_hook(conduit):
     # for the list of update packages, which is all we care about.    
     upds = conduit._base.doPackageLists(pkgnarrow='updates')
     pkgs = upds.updates
+    # In theory we don't need to do this in some cases, but meh.
+    upds = conduit._base.doPackageLists(pkgnarrow='obsoletes')
+    pkgs += upds.obsoletes
 
     name2tup = _get_name2oldpkgtup(conduit._base)
     


More information about the Yum-commits mailing list