From 31511eb9787014c26faf72be1d4d7329251727d9 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 16 Sep 2008 19:14:49 +0000 Subject: bitbake parse/__init_.py: Add missing update_mtime function fixing bitbake shell reparse failures git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5196 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- bitbake/lib/bb/parse/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake/lib/bb/parse/__init__.py') 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): return 0 return __mtime_cache[f] +def update_mtime(f): + __mtime_cache[f] = os.stat(f)[8] + return __mtime_cache[f] + def mark_dependency(d, f): if f.startswith('./'): f = "%s/%s" % (os.getcwd(), f[2:]) -- cgit v1.2.3-54-g00ecf