diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2015-07-08 18:34:17 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-12 22:50:26 +0100 |
commit | 9fa6407e6cefe66c77467419a8040d6957a6bb01 (patch) | |
tree | dfbfda50bf7da305880e1bd8d9c56b0cc501f896 /lib/bb/fetch2/__init__.py | |
parent | 31305853a177735cc9c4553ea8905cd0acfcb100 (diff) | |
download | openembedded-core-contrib-9fa6407e6cefe66c77467419a8040d6957a6bb01.tar.gz |
fetch2/wget.py: Add support of connection cache in checkstatus.
fetch2/__init__.py: Add connection_cache param in Fetch __init__.
In order to pass connection cache object to checkstatus method.
[YOCTO #7796]
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r-- | lib/bb/fetch2/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 8d0221decc..7b4d130f5f 100644 --- a/lib/bb/fetch2/__init__.py +++ b/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: |