diff options
-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) |