summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/__init__.py
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2006-04-28 21:07:16 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2006-04-28 21:07:16 +0000
commit6d7d68d1c50d2d5abc09f00167310cd60fc58d8d (patch)
tree9a344b2bf47cea2858692ff026b84458d3a4408d /lib/bb/parse/__init__.py
parentcb6e46a7a2af3115d410b80bbf11c3a9de906503 (diff)
downloadbitbake-contrib-6d7d68d1c50d2d5abc09f00167310cd60fc58d8d.tar.gz
bitbake/lib/bb/parse/__init__.py:
Bug 895. __depends is a single string with "filename@time" the string gets splitted by ' ' as it is assumed that "filename@time filename2@time2" is true. Basicly on PPC/Darwin we have "PowerPC Macintosh.conf" splitting by space leads to the error observed by koen. Resolution: As we use __depends only as a list, save it as a list. This avoids the int->str->int, and split, append, join operations. bitbake/lib/bb/cache.py: __depends is now a list, change the version of the cache and simplify the method.
Diffstat (limited to 'lib/bb/parse/__init__.py')
-rw-r--r--lib/bb/parse/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py
index cb2741606..58e17d154 100644
--- a/lib/bb/parse/__init__.py
+++ b/lib/bb/parse/__init__.py
@@ -46,9 +46,9 @@ def update_mtime(f):
def mark_dependency(d, f):
if f.startswith('./'):
f = "%s/%s" % (os.getcwd(), f[2:])
- deps = (bb.data.getVar('__depends', d) or "").split()
- deps.append("%s@%s" % (f, cached_mtime(f)))
- bb.data.setVar('__depends', " ".join(deps), d)
+ deps = bb.data.getVar('__depends', d) or []
+ deps.append( (f, cached_mtime(f)) )
+ bb.data.setVar('__depends', deps, d)
def supports(fn, data):
"""Returns true if we have a handler for this file, false otherwise"""