diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 067d60cc9f..2eeec3dd51 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
| @@ -1028,7 +1028,7 @@ class Fetch(object): | |||
| 1028 | self.ud = {} | 1028 | self.ud = {} |
| 1029 | 1029 | ||
| 1030 | fn = d.getVar('FILE', True) | 1030 | fn = d.getVar('FILE', True) |
| 1031 | if cache and fn in urldata_cache: | 1031 | if cache and fn and fn in urldata_cache: |
| 1032 | self.ud = urldata_cache[fn] | 1032 | self.ud = urldata_cache[fn] |
| 1033 | 1033 | ||
| 1034 | for url in urls: | 1034 | for url in urls: |
| @@ -1040,7 +1040,7 @@ class Fetch(object): | |||
| 1040 | self.ud[url] = None | 1040 | self.ud[url] = None |
| 1041 | pass | 1041 | pass |
| 1042 | 1042 | ||
| 1043 | if cache: | 1043 | if fn and cache: |
| 1044 | urldata_cache[fn] = self.ud | 1044 | urldata_cache[fn] = self.ud |
| 1045 | 1045 | ||
| 1046 | def localpath(self, url): | 1046 | def localpath(self, url): |
