[Yum-devel] [PATCH] getGroups() API change. BZ 749108.
seth vidal
skvidal at fedoraproject.org
Wed Oct 26 12:59:08 UTC 2011
On Wed, 2011-10-26 at 14:36 +0200, Zdeněk Pavlas wrote:
> repo.getGroups() returns None on failure,
> instead of raising an exception.
> ---
> langpacks.py | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/langpacks.py b/langpacks.py
> index f39257b..7e5c82d 100644
> --- a/langpacks.py
> +++ b/langpacks.py
> @@ -68,9 +68,8 @@ def postreposetup_hook(conduit):
> global conditional_pkgs
>
> for repo in conduit.getRepos().listEnabled():
> - try:
> - infile = repo.getGroups()
> - except yum.Errors.YumBaseError:
> + infile = repo.getGroups()
> + if not infile:
> continue
>
> infile = yum.misc.decompress(infile)
This is a patch to langpacks... We don't maintain that in the yum tree.
Who are you sending this to?
-sv
More information about the Yum-devel
mailing list