From dbdf434c1e6582b45d30969964fa14504e048bcc Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sun, 13 Dec 2015 15:43:12 -0600 Subject: [PATCH] Reset make.py Cache on new build version Close #1127 If the version (from main) changes, reset cache Same effect as "force" --- tools/make.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/make.py b/tools/make.py index 82c7a881d6..496a6bdf67 100644 --- a/tools/make.py +++ b/tools/make.py @@ -975,6 +975,18 @@ See the make.cfg file for additional build options. print ("No cache found.") cache = {} + # Check the ace build version (from main) with cached version - Forces a full rebuild when version changes + aceVersion = get_project_version() + cacheVersion = "None"; + if 'cacheVersion' in cache: + cacheVersion = cache['cacheVersion'] + + if (aceVersion != cacheVersion): + cache = {} + print("Reseting Cache {0} to New Version {1}".format(cacheVersion, aceVersion)) + cache['cacheVersion'] = aceVersion + + if not os.path.isdir(os.path.join(release_dir, project, "addons")): try: os.makedirs(os.path.join(release_dir, project, "addons"))