diff options
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 3c9ba8e6da..5dd96c4136 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -50,6 +50,10 @@ def cached_mtime_noerror(f): | |||
50 | return 0 | 50 | return 0 |
51 | return __mtime_cache[f] | 51 | return __mtime_cache[f] |
52 | 52 | ||
53 | def update_mtime(f): | ||
54 | __mtime_cache[f] = os.stat(f)[8] | ||
55 | return __mtime_cache[f] | ||
56 | |||
53 | def mark_dependency(d, f): | 57 | def mark_dependency(d, f): |
54 | if f.startswith('./'): | 58 | if f.startswith('./'): |
55 | f = "%s/%s" % (os.getcwd(), f[2:]) | 59 | f = "%s/%s" % (os.getcwd(), f[2:]) |