summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/parse
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-04 14:04:40 +0200
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:35 +0100
commit30216c65e59e7072bed5001598240dcc58017940 (patch)
treebbbe00b0888b3e8f6ef00b449444b1d70a19a316 /bitbake/lib/bb/parse
parentcf79cf127b370160b59e088acec187b0f0212e7f (diff)
downloadpoky-30216c65e59e7072bed5001598240dcc58017940.tar.gz
cache: use a set() for __depends
to make updating depends easier/more intuitive/eventually faster (Bitbake rev: f7c69462b8ba726861898817cc5b13174c78e35a) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse')
-rw-r--r--bitbake/lib/bb/parse/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py
index fc06841d3f..95f372b00b 100644
--- a/bitbake/lib/bb/parse/__init__.py
+++ b/bitbake/lib/bb/parse/__init__.py
@@ -56,8 +56,8 @@ def update_mtime(f):
56def mark_dependency(d, f): 56def mark_dependency(d, f):
57 if f.startswith('./'): 57 if f.startswith('./'):
58 f = "%s/%s" % (os.getcwd(), f[2:]) 58 f = "%s/%s" % (os.getcwd(), f[2:])
59 deps = bb.data.getVar('__depends', d) or [] 59 deps = bb.data.getVar('__depends', d) or set()
60 deps.append( (f, cached_mtime(f)) ) 60 deps.update([(f, cached_mtime(f))])
61 bb.data.setVar('__depends', deps, d) 61 bb.data.setVar('__depends', deps, d)
62 62
63def supports(fn, data): 63def supports(fn, data):