aboutsummaryrefslogtreecommitdiffstats
path: root/classes/sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r--classes/sanity.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass
index f57d8e47d0..b66c9a9877 100644
--- a/classes/sanity.bbclass
+++ b/classes/sanity.bbclass
@@ -135,8 +135,9 @@ def check_sanity(e):
checkfile = os.path.join(tmpdir, "saved_tmpdir")
if os.path.exists(checkfile):
f = file(checkfile, "r")
- if (f.read().strip() != tmpdir):
- messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % tmpdir
+ oldpath = f.read().strip()
+ if (oldpath != tmpdir):
+ messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % oldpath
else:
import bb
bb.mkdirhier(tmpdir)