aboutsummaryrefslogtreecommitdiffstats
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index 1e6b170222..2cf6c7f920 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -186,6 +186,15 @@ def check_sanity(e):
messages = messages + "Error, Your PACKAGE_ARCHS field contains duplicates. Perhaps you set PACKAGE_EXTRA_ARCHS twice accidently through some tune file?\n"
break
+ #
+ # Check there isn't old persistent cache
+ #
+ cache = data.getVar('CACHE', e.data, True)
+ persistent_dir = data.getVar('PERSISTENT_DIR', e.data, True)
+ persistent_cache_filename = data.getVar('SANITY_PERSIST_DATA_FILE', e.data, True)
+ if cache != persistent_dir and os.path.exists(cache + '/' + persistent_cache_filename):
+ messages = messages + "Error, persistent cache file '%s' exists in old location '%s', please migrate it to new location '%s' and merge them together if you have one for each MACHINE.\n" % (persistent_cache_filename, cache, persistent_dir)
+
if messages != "":
raise_sanity_error(messages)