summaryrefslogtreecommitdiffstats
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:06:45 +0000
commite9967d9ed804365d66433b1ac6185ada0d1c5b77 (patch)
treed359764851a51091de7b2565868ee218546a2af6
parent16b98241e92385a46c3b9858c76e3ea6bb614d69 (diff)
downloadpoky-e9967d9ed804365d66433b1ac6185ada0d1c5b77.tar.gz
bitbake: 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. (Bitbake rev: 7b072ef91d16331eae11bd60f229ce1f0c175995) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/wget.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 7c49c2b128..c83eba3b93 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -250,6 +250,7 @@ class Wget(FetchMethod):
250 return "" 250 return ""
251 def close(self): 251 def close(self):
252 pass 252 pass
253 closed = False
253 254
254 resp = addinfourl(fp_dummy(), r.msg, req.get_full_url()) 255 resp = addinfourl(fp_dummy(), r.msg, req.get_full_url())
255 resp.code = r.status 256 resp.code = r.status