[Yum-devel] [PATCH] Close urlgrabber's curl object after download packages.

seth vidal skvidal at fedoraproject.org
Mon Oct 11 18:38:00 UTC 2010


On Mon, 2010-10-11 at 14:22 -0400, James Antill wrote:
> ---
>  yum/__init__.py |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/yum/__init__.py b/yum/__init__.py
> index 6a7db7a..4596e71 100644
> --- a/yum/__init__.py
> +++ b/yum/__init__.py
> @@ -1854,6 +1854,10 @@ class YumBase(depsolve.Depsolve):
>  
>          self.plugins.run('postdownload', pkglist=pkglist, errors=errors)
>  
> +        # Close curl object after we've downloaded everything.
> +        if hasattr(urlgrabber.grabber, 'reset_curl_obj'):
> +            urlgrabber.grabber.reset_curl_obj()
> +
>          return errors
>  
>      def verifyHeader(self, fo, po, raiseError):

ACK.

-sv




More information about the Yum-devel mailing list