Patchwork [3/4] sanity.bbclass: remove the obsolete variable last_tmpdir

login
register
mail settings
Submitter Robert Yang
Date Nov. 4, 2013, 10:40 p.m.
Message ID <a98c91fe5475d8b15fd93968e6605d682ae1411c.1383604532.git.liezhi.yang@windriver.com>
Download mbox | patch
Permalink /patch/61109/
State New
Headers show

Comments

Robert Yang - Nov. 4, 2013, 10:40 p.m.
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.yang@windriver.com>
---
 meta/classes/sanity.bbclass | 4 ----
 1 file changed, 4 deletions(-)

Patch

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)