---
 output.py      |  2 ++
 yumcommands.py | 12 +++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/output.py b/output.py
index 020e2b6..2a9e2c8 100755
--- a/output.py
+++ b/output.py
@@ -939,6 +939,8 @@ class YumOutput:
                         highlight = 
highlight_modes.get('kern','bold,underline')
                     elif key not in highlight_na:
                         highlight = highlight_modes.get('not in', 'normal')
+                    elif highlight_na[key] in highlight_modes:
+                        highlight = highlight_modes[highlight_na[key]]
                     elif pkg.verEQ(highlight_na[key]):
                         highlight = highlight_modes.get('=', 'normal')
                     elif pkg.verLT(highlight_na[key]):
diff --git a/yumcommands.py b/yumcommands.py
index ac50187..41a3b64 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -1614,16 +1614,26 @@ class CheckUpdateCommand(YumCommand):
                 local_pkgs = {}
                 highlight = base.term.MODE['bold']
                 if highlight:
+                    do_excludes = False
+                    if base.conf.disable_excludes:
+                        base.conf.disable_excludes = []
+                        base.excludePackages()
+                        for repo in base.repos.listEnabled():
+                            base.excludePackages(repo)
+                        do_excludes = True
                     # Do the local/remote split we get in "yum updates"
                     for po in sorted(ypl.updates):
                         if po.repo.id != 'installed' and po.verifyLocalPkg():
                             local_pkgs[(po.name, po.arch)] = po
+                        elif do_excludes and po.repo.sack._pkgExcluded(po):
+                            local_pkgs[(po.name, po.arch)] = 'x'
 
                 cul = base.conf.color_update_local
                 cur = base.conf.color_update_remote
+                cux = base.conf.color_list_available_upgrade
                 base.listPkgs(ypl.updates, '', outputType='list',
                               highlight_na=local_pkgs, columns=columns,
-                              highlight_modes={'=' : cul, 'not in' : cur})
+                              highlight_modes={'=' : cul, 'not in' : cur, 'x': 
cux})
                 result = 100
             if len(ypl.obsoletes) > 0: # This only happens in verbose mode
                 print _('Obsoleting Packages')
-- 
1.7.11.7

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to