summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-07-08 18:34:17 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-12 22:50:42 +0100
commit3b186fba59163c5a4eacdaf1be7899b60a1482ee (patch)
tree084aec7544f31c7f7daf82604552d1cd30c2e0ef /bitbake/lib/bb/fetch2/__init__.py
parent97c5ecffaab5c276781e71d00abad8d4ed1fa91c (diff)
downloadpoky-3b186fba59163c5a4eacdaf1be7899b60a1482ee.tar.gz
bitbake: 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] (Bitbake rev: 9fa6407e6cefe66c77467419a8040d6957a6bb01) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py3
1 files changed, 2 insertions, 1 deletions
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):
1505 return "%s-%s" % (key, d.getVar("PN", True) or "") 1505 return "%s-%s" % (key, d.getVar("PN", True) or "")
1506 1506
1507class Fetch(object): 1507class Fetch(object):
1508 def __init__(self, urls, d, cache = True, localonly = False): 1508 def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None):
1509 if localonly and cache: 1509 if localonly and cache:
1510 raise Exception("bb.fetch2.Fetch.__init__: cannot set cache and localonly at same time") 1510 raise Exception("bb.fetch2.Fetch.__init__: cannot set cache and localonly at same time")
1511 1511
@@ -1514,6 +1514,7 @@ class Fetch(object):
1514 self.urls = urls 1514 self.urls = urls
1515 self.d = d 1515 self.d = d
1516 self.ud = {} 1516 self.ud = {}
1517 self.connection_cache = connection_cache
1517 1518
1518 fn = d.getVar('FILE', True) 1519 fn = d.getVar('FILE', True)
1519 if cache and fn and fn in urldata_cache: 1520 if cache and fn and fn in urldata_cache: