[Yum-devel] [PATCH] Make resolvedep output nicer, as people misparse the mock build output a lot.
tim.lauridsen at gmail.com
tim.lauridsen at gmail.com
Fri Mar 2 12:20:55 UTC 2012
On Wed, Feb 29, 2012 at 7:16 PM, James Antill <james at and.org> wrote:
> ---
> cli.py | 11 ++++++++++-
> 1 files changed, 10 insertions(+), 1 deletions(-)
>
> diff --git a/cli.py b/cli.py
> index b7511f1..ffc1741 100755
> --- a/cli.py
> +++ b/cli.py
> @@ -1409,24 +1409,33 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
> 1 = we've errored, exit with error string
> 2 = we've got work yet to do, onto the next stage
> """
> +
> + not_found = set()
> for arg in args:
> try:
> ipkg = self.returnInstalledPackageByDep(arg)
> except yum.Errors.YumBaseError:
> ipkg = None
> else:
> + self.verbose_logger.info(" %s:", arg)
> self.verbose_logger.info("%s %s" % (ipkg.envra,
> ipkg.ui_from_repo))
> try:
> pkg = self.returnPackageByDep(arg)
> except yum.Errors.YumBaseError:
> if not ipkg:
> - self.logger.critical(_('No Package Found for %s'),
> arg)
> + not_found.add(arg)
> else:
> + if not ipkg:
> + self.verbose_logger.info(" %s:", arg)
> if not pkg.verEQ(ipkg):
> self.verbose_logger.info("%s %s" % (pkg.envra,
> pkg.ui_from_repo))
>
> + if not_found:
> + self.logger.critical(_('Error: No Packages found for:\n %s'),
> + "\n ".join(sorted(not_found)))
> +
> return 0, []
>
> def cleanCli(self, userlist):
> --
> 1.7.6.5
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel
>
ACK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20120302/17361e4b/attachment.html>
More information about the Yum-devel
mailing list