[PATCH] repo-pkgs: Fix repoid parsing. BZ 1055132.

James Antill james at fedoraproject.org
Mon Jan 20 14:48:38 UTC 2014


On Mon, 2014-01-20 at 09:56 +0100, Zdenek Pavlas wrote:
> checkRepoPackageArg() is relaxed but doCommand() assumes a repoid.
> Make these use the same repo. When matching names, match ui_id too.
> ---
>  yum/repos.py   | 2 +-
>  yumcommands.py | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/yum/repos.py b/yum/repos.py
> index 67ef1e4..f32ffac 100644
> --- a/yum/repos.py
> +++ b/yum/repos.py
> @@ -217,7 +217,7 @@ class RepoStorage:
>                  assert name == repo.id
>                  if match(name):
>                      result.append(repo)
> -                elif name_match and match(repo.name):
> +                elif name_match and (match(repo.name) or match(repo.ui_id)):
>                      result.append(repo)

 Not sure if it's better to do this with the id match, or have it on the
name side.

 Either way, ACK.



More information about the Yum-devel mailing list