From d4a0a60b98890a07199ff22fa0695dc727bacf32 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 20 May 2005 11:43:37 +0000 Subject: 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 --- lib/bb/data_dict.py | 2 +- 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) -- cgit 1.2.3-korg