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:06:45 +0000 |
commit | e9967d9ed804365d66433b1ac6185ada0d1c5b77 (patch) | |
tree | d359764851a51091de7b2565868ee218546a2af6 | |
parent | 16b98241e92385a46c3b9858c76e3ea6bb614d69 (diff) | |
download | openembedded-core-contrib-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.py | 1 |
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): return "" def close(self): pass + closed = False resp = addinfourl(fp_dummy(), r.msg, req.get_full_url()) resp.code = r.status |