summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-20 11:53:31 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:34 +0100
commitc3eae29efa2318ee4f12b1e1c8d562e18d1cee87 (patch)
tree66adc15f52ffd35621389d9de05df3adf76a1f90 /bitbake/lib/bb/cache.py
parent214d1f7433fd8571c3e0920624ce07f31c7f08c9 (diff)
downloadpoky-c3eae29efa2318ee4f12b1e1c8d562e18d1cee87.tar.gz
Don't try to expand non-string values
(Bitbake rev: fe36a726b9f930bbd6fd758c0aee78559e95f02b) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py
index 6e124b2e83..1d592a42f1 100644
--- a/bitbake/lib/bb/cache.py
+++ b/bitbake/lib/bb/cache.py
@@ -72,7 +72,7 @@ class Cache:
72 # If any of configuration.data's dependencies are newer than the 72 # If any of configuration.data's dependencies are newer than the
73 # cache there isn't even any point in loading it... 73 # cache there isn't even any point in loading it...
74 newest_mtime = 0 74 newest_mtime = 0
75 deps = bb.data.getVar("__depends", data, True) 75 deps = bb.data.getVar("__depends", data)
76 for f, old_mtime in deps: 76 for f, old_mtime in deps:
77 if old_mtime > newest_mtime: 77 if old_mtime > newest_mtime:
78 newest_mtime = old_mtime 78 newest_mtime = old_mtime
@@ -136,7 +136,7 @@ class Cache:
136 # Make sure __depends makes the depends_cache 136 # Make sure __depends makes the depends_cache
137 # If we're a virtual class we need to make sure all our depends are appended 137 # If we're a virtual class we need to make sure all our depends are appended
138 # to the depends of fn. 138 # to the depends of fn.
139 depends = self.getVar("__depends", virtualfn, True) or [] 139 depends = self.getVar("__depends", virtualfn) or []
140 self.depends_cache.setdefault(fn, {}) 140 self.depends_cache.setdefault(fn, {})
141 if "__depends" not in self.depends_cache[fn] or not self.depends_cache[fn]["__depends"]: 141 if "__depends" not in self.depends_cache[fn] or not self.depends_cache[fn]["__depends"]:
142 self.depends_cache[fn]["__depends"] = depends 142 self.depends_cache[fn]["__depends"] = depends
@@ -218,7 +218,7 @@ class Cache:
218 for data in bb_data: 218 for data in bb_data:
219 virtualfn = self.realfn2virtual(fn, data) 219 virtualfn = self.realfn2virtual(fn, data)
220 self.setData(virtualfn, fn, bb_data[data]) 220 self.setData(virtualfn, fn, bb_data[data])
221 if self.getVar("__SKIPPED", virtualfn, True): 221 if self.getVar("__SKIPPED", virtualfn):
222 skipped += 1 222 skipped += 1
223 bb.msg.debug(1, bb.msg.domain.Cache, "Skipping %s" % virtualfn) 223 bb.msg.debug(1, bb.msg.domain.Cache, "Skipping %s" % virtualfn)
224 else: 224 else:
@@ -361,7 +361,7 @@ class Cache:
361 packages_dynamic = (self.getVar('PACKAGES_DYNAMIC', file_name, True) or "").split() 361 packages_dynamic = (self.getVar('PACKAGES_DYNAMIC', file_name, True) or "").split()
362 rprovides = (self.getVar("RPROVIDES", file_name, True) or "").split() 362 rprovides = (self.getVar("RPROVIDES", file_name, True) or "").split()
363 363
364 cacheData.task_deps[file_name] = self.getVar("_task_deps", file_name, True) 364 cacheData.task_deps[file_name] = self.getVar("_task_deps", file_name)
365 365
366 # build PackageName to FileName lookup table 366 # build PackageName to FileName lookup table
367 if pn not in cacheData.pkg_pn: 367 if pn not in cacheData.pkg_pn: