summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 75bb1a99c1..5cf0677957 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -131,7 +131,8 @@ def check_sanity(e):
131 checkfile = os.path.join(tmpdir, "saved_tmpdir") 131 checkfile = os.path.join(tmpdir, "saved_tmpdir")
132 if os.path.exists(checkfile): 132 if os.path.exists(checkfile):
133 f = file(checkfile, "r") 133 f = file(checkfile, "r")
134 if (f.read().strip() != tmpdir): 134 saved_tmpdir = f.read().strip()
135 if (saved_tmpdir != tmpdir):
135 messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir 136 messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
136 else: 137 else:
137 f = file(checkfile, "w") 138 f = file(checkfile, "w")