summaryrefslogtreecommitdiffstats
path: root/lib/bb/parse/__init__.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-04 14:04:40 +0200
committerChris Larson <chris_larson@mentor.com>2010-06-04 16:27:48 -0700
commitf7c69462b8ba726861898817cc5b13174c78e35a (patch)
treee7dcdac2bde329e96920cf3999385d7f0bbbab65 /lib/bb/parse/__init__.py
parentc0cf85beda4cf8748fd270c037442cde7b98146b (diff)
downloadbitbake-contrib-f7c69462b8ba726861898817cc5b13174c78e35a.tar.gz
cache: use a set() for __depends
to make updating depends easier/more intuitive/eventually faster Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/parse/__init__.py')
-rw-r--r--lib/bb/parse/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/parse/__init__.py b/lib/bb/parse/__init__.py
index fc06841d3..95f372b00 100644
--- a/lib/bb/parse/__init__.py
+++ b/lib/bb/parse/__init__.py
@@ -56,8 +56,8 @@ 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 []
- deps.append( (f, cached_mtime(f)) )
+ deps = bb.data.getVar('__depends', d) or set()
+ deps.update([(f, cached_mtime(f))])
bb.data.setVar('__depends', deps, d)
def supports(fn, data):