[Yum-devel] [PATCH] Fix RHEL-5 yum-utils/yumdownloader, when using 3.2.29+.

seth vidal skvidal at fedoraproject.org
Thu Mar 10 18:30:32 UTC 2011


On Thu, 2011-03-10 at 13:29 -0500, James Antill wrote:
> ---
>  cli.py |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/cli.py b/cli.py
> index a4c7c79..576126d 100644
> --- a/cli.py
> +++ b/cli.py
> @@ -45,6 +45,11 @@ import yumcommands
>  
>  from yum.i18n import to_unicode, to_utf8
>  
> +#  This is for yum-utils/yumdownloader in RHEL-5, where it isn't importing this
> +# directly but did do "from cli import *", and we did have this in 3.2.22. I
> +# just _love_ how python re-exports these by default.
> +from yum.packages import parsePackages
> +
>  def sigquit(signum, frame):
>      """ SIGQUIT handler for the yum cli. """
>      print >> sys.stderr, "Quit signal sent - exiting immediately"


ACK it's fine. - alternatively fix in yum-utils ;)

-sv




More information about the Yum-devel mailing list