diff options
author | Richard Purdie <richard@openedhand.com> | 2006-11-16 15:02:15 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-11-16 15:02:15 +0000 |
commit | 306b7c7a9757ead077363074e7bbac2e5c03e7c5 (patch) | |
tree | 6935017a9af749c46816881c86258f514384ba1c /bitbake/lib/bb/parse/__init__.py | |
parent | 65930a38e415ae4a0182e1cea1be838e0ada50ee (diff) | |
download | poky-306b7c7a9757ead077363074e7bbac2e5c03e7c5.tar.gz |
bitbake: Upgrade from 1.4 -> 1.7.4ish
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@863 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index 58e17d154a..70fdba03b4 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -37,11 +37,16 @@ class SkipPackage(Exception): | |||
37 | __mtime_cache = {} | 37 | __mtime_cache = {} |
38 | def cached_mtime(f): | 38 | def cached_mtime(f): |
39 | if not __mtime_cache.has_key(f): | 39 | if not __mtime_cache.has_key(f): |
40 | update_mtime(f) | 40 | __mtime_cache[f] = os.stat(f)[8] |
41 | return __mtime_cache[f] | 41 | return __mtime_cache[f] |
42 | 42 | ||
43 | def update_mtime(f): | 43 | def cached_mtime_noerror(f): |
44 | __mtime_cache[f] = os.stat(f)[8] | 44 | if not __mtime_cache.has_key(f): |
45 | try: | ||
46 | __mtime_cache[f] = os.stat(f)[8] | ||
47 | except OSError: | ||
48 | return 0 | ||
49 | return __mtime_cache[f] | ||
45 | 50 | ||
46 | def mark_dependency(d, f): | 51 | def mark_dependency(d, f): |
47 | if f.startswith('./'): | 52 | if f.startswith('./'): |