summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-05-28 21:32:30 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-05-28 21:32:30 +0100
commitf2a9705633cc0ccf3c06b9ada67f57b7a3ea0614 (patch)
tree87ee9d6659fc0e630ddcb8effa803feaf4a6dd79 /meta/classes
parent05a296b2042b1087b11150274737171a4a209236 (diff)
downloadopenembedded-core-f2a9705633cc0ccf3c06b9ada67f57b7a3ea0614.tar.gz
openembedded-core-f2a9705633cc0ccf3c06b9ada67f57b7a3ea0614.tar.bz2
openembedded-core-f2a9705633cc0ccf3c06b9ada67f57b7a3ea0614.zip
sanity.bbclass: Really fix TMPDIR change warning message
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-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):
checkfile = os.path.join(tmpdir, "saved_tmpdir")
if os.path.exists(checkfile):
f = file(checkfile, "r")
- if (f.read().strip() != tmpdir):
+ saved_tmpdir = f.read().strip()
+ if (saved_tmpdir != tmpdir):
messages = messages + "Error, TMPDIR has changed location. You need to either move it back to %s or rebuild\n" % saved_tmpdir
else:
f = file(checkfile, "w")