From 3b186fba59163c5a4eacdaf1be7899b60a1482ee Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Wed, 8 Jul 2015 18:34:17 -0500 Subject: bitbake: fetch2/wget.py: Add support of connection cache in checkstatus. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fetch2/__init__.py: Add connection_cache param in Fetch __init__. In order to pass connection cache object to checkstatus method. [YOCTO #7796] (Bitbake rev: 9fa6407e6cefe66c77467419a8040d6957a6bb01) Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/__init__.py') diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 8d0221decc..7b4d130f5f 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -1505,7 +1505,7 @@ class FetchMethod(object): return "%s-%s" % (key, d.getVar("PN", True) or "") class Fetch(object): - def __init__(self, urls, d, cache = True, localonly = False): + def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None): if localonly and cache: raise Exception("bb.fetch2.Fetch.__init__: cannot set cache and localonly at same time") @@ -1514,6 +1514,7 @@ class Fetch(object): self.urls = urls self.d = d self.ud = {} + self.connection_cache = connection_cache fn = d.getVar('FILE', True) if cache and fn and fn in urldata_cache: -- cgit v1.2.3-54-g00ecf