[Yum-devel] [PATCH 1/2] Use --showduplicates in deplist, don't reoutput pkgs. each time around loop.
seth vidal
skvidal at fedoraproject.org
Tue Mar 15 14:50:36 UTC 2011
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
More information about the Yum-devel
mailing list