[Yum-devel] [PATCH] Don't return None when transaction is empty in resolveDeps, BZ 603002

seth vidal skvidal at fedoraproject.org
Fri Jun 11 14:47:43 UTC 2010


On Fri, 2010-06-11 at 10:45 -0400, James Antill wrote:
> ---
>  yum/depsolve.py |    7 +++----
>  1 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/yum/depsolve.py b/yum/depsolve.py
> index b661191..3e95626 100644
> --- a/yum/depsolve.py
> +++ b/yum/depsolve.py
> @@ -776,10 +776,9 @@ class Depsolve(object):
>                  self.verbose_logger.log(logginglevels.DEBUG_4,"  --> %s" % err)
>              return (1, errors)
>  
> -        if len(self.tsInfo) > 0:
> -            if not len(self.tsInfo):
> -                return (0, [_('Success - empty transaction')])
> -            return (2, [_('Success - deps resolved')])
> +        if not len(self.tsInfo):
> +            return (0, [_('Success - empty transaction')])
> +        return (2, [_('Success - deps resolved')])
>  
>      def _resolveRequires(self, errors):
>          any_missing = False

ACK

-sv




More information about the Yum-devel mailing list