diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-06-04 14:04:39 +0200 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 15:41:35 +0100 |
commit | cf79cf127b370160b59e088acec187b0f0212e7f (patch) | |
tree | e21b4d60a91776d288beb0effa563d8d1fd518bb /bitbake/lib/bb | |
parent | 81d13cbebea319906c69ec25145d579b94411bb8 (diff) | |
download | openembedded-core-cf79cf127b370160b59e088acec187b0f0212e7f.tar.gz openembedded-core-cf79cf127b370160b59e088acec187b0f0212e7f.tar.bz2 openembedded-core-cf79cf127b370160b59e088acec187b0f0212e7f.zip |
cache: use max() to determine newest_mtime
(Bitbake rev: c0cf85beda4cf8748fd270c037442cde7b98146b)
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')
-rw-r--r-- | bitbake/lib/bb/cache.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 33734df940..8c1e6922fb 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/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: |