aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-11-07 14:49:17 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-21 13:01:42 +0000
commit7b072ef91d16331eae11bd60f229ce1f0c175995 (patch)
tree1f4dd7fc9e2afbc69d142e93d593291c0a8f7ecc
parent80f72ac6c56ba8f3e2f7b5f0cb95bee6c0101323 (diff)
downloadbitbake-7b072ef91d16331eae11bd60f229ce1f0c175995.tar.gz
bitbake-7b072ef91d16331eae11bd60f229ce1f0c175995.tar.bz2
bitbake-7b072ef91d16331eae11bd60f229ce1f0c175995.zip
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@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/wget.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index 7c49c2b1..c83eba3b 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