aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-06-04 14:04:39 +0200
committerChris Larson <chris_larson@mentor.com>2010-06-04 16:27:48 -0700
commitc0cf85beda4cf8748fd270c037442cde7b98146b (patch)
tree8dc9e938e95a923baf17f4537d0c3f737445f30c /lib
parent09fe0d403c75229931c10eabc7eecc0dc60058fe (diff)
downloadbitbake-c0cf85beda4cf8748fd270c037442cde7b98146b.tar.gz
cache: use max() to determine newest_mtime
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/cache.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index 33734df94..8c1e6922f 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -70,9 +70,10 @@ class Cache:
# cache there isn't even any point in loading it...
newest_mtime = 0
deps = bb.data.getVar("__depends", data)
- for f, old_mtime in deps:
- if old_mtime > newest_mtime:
- newest_mtime = old_mtime
+
+ old_mtimes = [old_mtime for f, old_mtime in deps]
+ old_mtimes.append(newest_mtime)
+ newest_mtime = max(old_mtimes)
if bb.parse.cached_mtime_noerror(self.cachefile) >= newest_mtime:
try: