The variable last_tmpdir which is read from the sanity_info file had been used by check_sanity_tmpdir_change(), but the function was removed, the check had been moved into check_sanity_version_change(), so we can remove last_tmpdir and we don't need to save the TMPDIR in the sanity_info file anymore.
[YOCTO #5442] Signed-off-by: Robert Yang <liezhi.y...@windriver.com> --- meta/classes/sanity.bbclass | 4 ---- 1 file changed, 4 deletions(-) diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index c777e3a..5a17936 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -710,7 +710,6 @@ def check_sanity(sanity_data): # Check saved sanity info last_sanity_version = 0 - last_tmpdir = "" last_sstate_dir = "" sanityverfile = os.path.join(tmpdir, "sanity_info") if os.path.exists(sanityverfile): @@ -718,8 +717,6 @@ def check_sanity(sanity_data): for line in f: if line.startswith('SANITY_VERSION'): last_sanity_version = int(line.split()[1]) - if line.startswith('TMPDIR'): - last_tmpdir = line.split()[1] if line.startswith('SSTATE_DIR'): last_sstate_dir = line.split()[1] @@ -737,7 +734,6 @@ def check_sanity(sanity_data): if os.path.exists(os.path.dirname(sanityverfile)) and not status.messages: with open(sanityverfile, 'w') as f: f.write("SANITY_VERSION %s\n" % sanity_version) - f.write("TMPDIR %s\n" % tmpdir) f.write("SSTATE_DIR %s\n" % sstate_dir) sanity_handle_abichanges(status, sanity_data) -- 1.8.3.1 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core