diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-20 11:43:37 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-20 11:43:37 +0000 |
commit | d4a0a60b98890a07199ff22fa0695dc727bacf32 (patch) | |
tree | faa68b2c22ebe189bd2bb2e2941fee6a0f425b13 | |
parent | 97a47d30b9e12e494a3da59d7359eb930230e4c2 (diff) | |
download | bitbake-d4a0a60b98890a07199ff22fa0695dc727bacf32.tar.gz |
bitbake/lib/bb/data_smart.py:
Return only the mtime from the os.stat syscall
bitbake/lib/bb/data_dict.py:
Return only the mtime from the os.stat syscall
-rw-r--r-- | lib/bb/data_dict.py | 2 | ||||
-rw-r--r-- | lib/bb/data_smart.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/data_dict.py b/lib/bb/data_dict.py index b4d6fd73e..27f3a9e0c 100644 --- a/lib/bb/data_dict.py +++ b/lib/bb/data_dict.py @@ -237,7 +237,7 @@ class DataDictPackage(DataDict): def mtime(cache,bbfile): cache_bbfile = DataDictPackage.sanitize_filename(bbfile) try: - return os.stat( "%s/%s" % (cache,cache_bbfile) ) + return os.stat( "%s/%s" % (cache,cache_bbfile) )[8] except OSError: return 0 mtime = staticmethod(mtime) diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py index 069fa0363..5bbc09edd 100644 --- a/lib/bb/data_smart.py +++ b/lib/bb/data_smart.py @@ -323,7 +323,7 @@ class DataSmartPackage(DataSmart): def mtime(cache,bbfile): cache_bbfile = DataSmartPackage.sanitize_filename(bbfile) try: - return os.stat( "%s/%s" % (cache,cache_bbfile) ) + return os.stat( "%s/%s" % (cache,cache_bbfile) )[8] except OSError: return 0 mtime = staticmethod(mtime) |