diff options
author | Ross Burton <ross.burton@intel.com> | 2017-11-07 14:49:17 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-21 13:01:42 +0000 |
commit | 7b072ef91d16331eae11bd60f229ce1f0c175995 (patch) | |
tree | 1f4dd7fc9e2afbc69d142e93d593291c0a8f7ecc /lib | |
parent | 80f72ac6c56ba8f3e2f7b5f0cb95bee6c0101323 (diff) | |
download | bitbake-7b072ef91d16331eae11bd60f229ce1f0c175995.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch2/wget.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index 7c49c2b12..c83eba3b9 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 |