diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index d8ad19b59b..eb112f069d 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1631,8 +1631,11 @@ class Fetch(object): | |||
1631 | 1631 | ||
1632 | fn = d.getVar('FILE') | 1632 | fn = d.getVar('FILE') |
1633 | mc = d.getVar('__BBMULTICONFIG') or "" | 1633 | mc = d.getVar('__BBMULTICONFIG') or "" |
1634 | if cache and fn and mc + fn in urldata_cache: | 1634 | key = None |
1635 | self.ud = urldata_cache[mc + fn + str(id(d))] | 1635 | if cache and fn: |
1636 | key = mc + fn + str(id(d)) | ||
1637 | if key in urldata_cache: | ||
1638 | self.ud = urldata_cache[key] | ||
1636 | 1639 | ||
1637 | for url in urls: | 1640 | for url in urls: |
1638 | if url not in self.ud: | 1641 | if url not in self.ud: |
@@ -1643,8 +1646,8 @@ class Fetch(object): | |||
1643 | self.ud[url] = None | 1646 | self.ud[url] = None |
1644 | pass | 1647 | pass |
1645 | 1648 | ||
1646 | if fn and cache: | 1649 | if key: |
1647 | urldata_cache[mc + fn + str(id(d))] = self.ud | 1650 | urldata_cache[key] = self.ud |
1648 | 1651 | ||
1649 | def localpath(self, url): | 1652 | def localpath(self, url): |
1650 | if url not in self.urls: | 1653 | if url not in self.urls: |