From 7b072ef91d16331eae11bd60f229ce1f0c175995 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 7 Nov 2017 14:49:17 +0000 Subject: 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 Signed-off-by: Richard Purdie --- 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 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 -- cgit 1.2.3-korg