summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/parse/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py
index 1becaa4f02..67ec71f866 100644
--- a/bitbake/lib/bb/parse/__init__.py
+++ b/bitbake/lib/bb/parse/__init__.py
@@ -71,7 +71,12 @@ def cached_mtime_noerror(f):
71 return __mtime_cache[f] 71 return __mtime_cache[f]
72 72
73def update_mtime(f): 73def update_mtime(f):
74 __mtime_cache[f] = os.stat(f)[stat.ST_MTIME] 74 try:
75 __mtime_cache[f] = os.stat(f)[stat.ST_MTIME]
76 except OSError:
77 if f in __mtime_cache:
78 del __mtime_cache[f]
79 return 0
75 return __mtime_cache[f] 80 return __mtime_cache[f]
76 81
77def update_cache(f): 82def update_cache(f):