[poky] [PATCH 05/57] bitbake: fetch2: Only cache data if fn is set, its pointless caching it against a None value
Scott Garman
scott.a.garman at intel.com
Mon Aug 13 14:19:31 PDT 2012
From: Richard Purdie <richard.purdie at linuxfoundation.org>
(From Poky rev: c2df30bf6d1f8c263a38c45866936c1bf496ece5)
(Bitbake rev: f4b59cc6e1c3ddc168a1678ce39ff402ea1ff4cc)
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bitbake/lib/bb/fetch2/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a26f61e..2ae8185 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -904,14 +904,14 @@ class Fetch(object):
self.ud = {}
fn = d.getVar('FILE', True)
- if cache and fn in urldata_cache:
+ if cache and fn and fn in urldata_cache:
self.ud = urldata_cache[fn]
for url in urls:
if url not in self.ud:
self.ud[url] = FetchData(url, d)
- if cache:
+ if fn and cache:
urldata_cache[fn] = self.ud
def localpath(self, url):
--
1.7.9.5
More information about the poky
mailing list