[oe-commits] [bitbake] 01/02: fetch/wget: improve proxy object

git at git.openembedded.org git at git.openembedded.org
Tue Nov 21 13:13:07 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

commit 7b072ef91d16331eae11bd60f229ce1f0c175995
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Tue Nov 7 14:49:17 2017 +0000

    fetch/wget: improve proxy object
    
    The connection cache class uses a dummy file object but it doesn't have a closed
    attribute, so we can't use it in a context manager.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/wget.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index 7c49c2b..c83eba3 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -250,6 +250,7 @@ class Wget(FetchMethod):
                         return ""
                     def close(self):
                         pass
+                    closed = False
 
                 resp = addinfourl(fp_dummy(), r.msg, req.get_full_url())
                 resp.code = r.status

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list