From 2a904f398592ce7effedc4f12720be0cef9b6cc9 Mon Sep 17 00:00:00 2001 From: Disyer Date: Sat, 5 Feb 2022 23:16:59 +0200 Subject: [PATCH] makepanda: Record cache timestamps as integers rather than floats We don't need the extra precision, in fact it is detrimental to restoring build caches in a cross-platform way. This commit will invalidate all current build caches. --- makepanda/makepandacore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index f436ac27dd..ab961f9a5c 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -717,7 +717,7 @@ def GetTimestamp(path): if path in TIMESTAMPCACHE: return TIMESTAMPCACHE[path] try: - date = os.path.getmtime(path) + date = int(os.path.getmtime(path)) except: date = 0 TIMESTAMPCACHE[path] = date @@ -871,7 +871,7 @@ def JavaGetImports(path): ## ######################################################################## -DCACHE_VERSION = 2 +DCACHE_VERSION = 3 DCACHE_BACKED_UP = False def SaveDependencyCache():