| Submitter | Richard Purdie |
|---|---|
| Date | June 20, 2012, 2:12 p.m. |
| Message ID | <c2df30bf6d1f8c263a38c45866936c1bf496ece5.1340200207.git.richard.purdie@linuxfoundation.org> |
| Download | mbox | patch |
| Permalink | /patch/30287/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 067d60c..2eeec3d 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -1028,7 +1028,7 @@ 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: @@ -1040,7 +1040,7 @@ class Fetch(object): self.ud[url] = None pass - if cache: + if fn and cache: urldata_cache[fn] = self.ud def localpath(self, url):
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- bitbake/lib/bb/fetch2/__init__.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)