summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
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: