[Yum-devel] [PATCH 1/2] Allow users to see just specific version groups
Seth Vidal
skvidal at fedoraproject.org
Fri Apr 9 20:19:41 UTC 2010
On Fri, 9 Apr 2010, Seth Vidal wrote:
>
>
> On Fri, 9 Apr 2010, James Antill wrote:
>
>> ---
>> 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:
>
> Any docs on how group- works?
>
oh and ACK
-sv
More information about the Yum-devel
mailing list