[Yum-devel] [PATCH 1/2] Allow users to see just specific version groups
James Antill
james at and.org
Fri Apr 9 20:00:47 UTC 2010
---
yumcommands.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/yumcommands.py b/yumcommands.py
index 88c047f..9bc06ad 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -1237,6 +1237,9 @@ class VersionCommand(YumCommand):
_append_repos(cols, data[1])
if groups:
for grp in sorted(data[2]):
+ if (vcmd.startswith("group-") and
+ len(extcmds) > 1 and grp not in extcmds[1:]):
+ continue
cols.append(("%s %s" % (_("Group-Installed:"), grp),
str(data[2][grp])))
_append_repos(cols, data[3][grp])
@@ -1252,6 +1255,9 @@ class VersionCommand(YumCommand):
_append_repos(cols, data[1])
if groups:
for grp in sorted(data[2]):
+ if (vcmd.startswith("group-") and
+ len(extcmds) > 1 and grp not in extcmds[1:]):
+ continue
cols.append(("%s %s" % (_("Group-Available:"), grp),
str(data[2][grp])))
if verbose:
--
1.6.6.1
More information about the Yum-devel
mailing list