summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a26f61eb42..2ae8185601 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -904,14 +904,14 @@ class Fetch(object):
904 self.ud = {} 904 self.ud = {}
905 905
906 fn = d.getVar('FILE', True) 906 fn = d.getVar('FILE', True)
907 if cache and fn in urldata_cache: 907 if cache and fn and fn in urldata_cache:
908 self.ud = urldata_cache[fn] 908 self.ud = urldata_cache[fn]
909 909
910 for url in urls: 910 for url in urls:
911 if url not in self.ud: 911 if url not in self.ud:
912 self.ud[url] = FetchData(url, d) 912 self.ud[url] = FetchData(url, d)
913 913
914 if cache: 914 if fn and cache:
915 urldata_cache[fn] = self.ud 915 urldata_cache[fn] = self.ud
916 916
917 def localpath(self, url): 917 def localpath(self, url):