diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-03-28 17:18:42 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-03-28 17:18:42 +0000 |
commit | 5e1b4cba247d9219c7c920a1ce9d1990a37fc733 (patch) | |
tree | 33bde115425faa3789354cc2b5f43c7322b5cd8e /lib | |
parent | b078757f05a7f9b004e88e7f94638d962f9df7fb (diff) | |
download | bitbake-5e1b4cba247d9219c7c920a1ce9d1990a37fc733.tar.gz |
cache.py: Fix a bug where changed files weren't getting spotted and an invalid cache was being used
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/cache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py index 312ca15c0..bcf393a57 100644 --- a/lib/bb/cache.py +++ b/lib/bb/cache.py @@ -208,7 +208,7 @@ class Cache: return False # Check the file's timestamp - if mtime > self.getVar("CACHETIMESTAMP", fn, True): + if mtime != self.getVar("CACHETIMESTAMP", fn, True): bb.msg.debug(2, bb.msg.domain.Cache, "Cache: %s changed" % fn) self.remove(fn) return False @@ -223,7 +223,7 @@ class Cache: self.remove(fn) return False - if (fmtime > old_mtime): + if (fmtime != old_mtime): bb.msg.debug(2, bb.msg.domain.Cache, "Cache: %s's dependency %s changed" % (fn, f)) self.remove(fn) return False |