Signed-off-by: Bernhard Reutner-Fischer <[email protected]>
---
 lib/bb/cache.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index 2ac7a34..30d10b9 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:
-- 
1.7.1

_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to