Backup dependency cache to save frustration when you accidentally hit a wrong option

This commit is contained in:
rdb 2009-07-20 08:17:27 +00:00
parent 0936def12b
commit 5343fa0969

View File

@ -319,6 +319,11 @@ def CxxGetIncludes(path):
########################################################################
def SaveDependencyCache():
try:
if (os.path.exists(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))):
os.rename(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache-backup"),
os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"))
except: pass
try: icache = open(os.path.join(OUTPUTDIR, "tmp", "makepanda-dcache"),'wb')
except: icache = 0
if (icache!=0):