On Tue, 2011-03-15 at 10:48 -0400, James Antill wrote:
> ---
>  cli.py |   13 ++++++++-----
>  1 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/cli.py b/cli.py
> index 576126d..2267b86 100644
> --- a/cli.py
> +++ b/cli.py
> @@ -1070,13 +1070,16 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
>                                            os.path.exists(arg))):
>                  thispkg = yum.packages.YumUrlPackage(self, self.ts, arg)
>                  pkgs.append(thispkg)
> +            elif self.conf.showdupesfromrepos:
> +                pkgs.extend(self.pkgSack.returnPackages(patterns=[arg]))
>              else:                
> -                ematch, match, unmatch = 
> self.pkgSack.matchPackageNames([arg])
> -                for po in ematch + match:
> -                    pkgs.append(po)
> +                try:
> +                    
> pkgs.extend(self.pkgSack.returnNewestByName(patterns=[arg]))
> +                except yum.Errors.PackageSackError:
> +                    pass
>                  
> -            results = self.findDeps(pkgs)
> -            self.depListOutput(results)
> +        results = self.findDeps(pkgs)
> +        self.depListOutput(results)
>  
>          return 0, []
>  


I think this is just going to create a new line of bugs complaining
about a format change in deplist but <shrug>

ack
-sv


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

Reply via email to