Browse Source

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.
Disyer 3 years ago
parent
commit
2a904f3985
1 changed files with 2 additions and 2 deletions
  1. 2 2
      makepanda/makepandacore.py

+ 2 - 2
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():