mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3127 from acemod/resetCacheOnNewVersion
Reset make.py Cache on new build version
This commit is contained in:
commit
71d4afcace
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user